diff options
author | Arn0 <yth@ythogtha.org> | 2023-11-09 13:55:10 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-11-11 08:07:54 +0700 |
commit | 9968e28abd6a8f8a26d6bfe488f6817cfcc8cb4e (patch) | |
tree | be61f7183c561d27185ea77706a8d916bb9d3f46 /graphics/brlcad/brlcad.SlackBuild | |
parent | a6d93895555d77811ae3483ea8065bedd233be19 (diff) |
graphics/brlcad: updated for version 7.38.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/brlcad/brlcad.SlackBuild')
-rw-r--r-- | graphics/brlcad/brlcad.SlackBuild | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/graphics/brlcad/brlcad.SlackBuild b/graphics/brlcad/brlcad.SlackBuild index 8ad525bfc9c90..c8a6871689edf 100644 --- a/graphics/brlcad/brlcad.SlackBuild +++ b/graphics/brlcad/brlcad.SlackBuild @@ -15,7 +15,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=brlcad -VERSION=${VERSION:-7.36.0} +VERSION=${VERSION:-7.38.0} SRCVER=rel-${VERSION//./-} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,15 +41,23 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" + ENDIAN="LITTLE" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" + ENDIAN="LITTLE" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" + ENDIAN="LITTLE" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" + ENDIAN="BIG" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" + ENDIAN="BIG" fi set -e @@ -70,6 +78,8 @@ find -L . \ # thanks arch maintainers. # fixes build on i586. patch -p1 < $CWD/brlcad-skip-gstep.patch +sed -i 's%#define OPENNURBS_INC_IN_PROGRESS%#define OPENNURBS_INC_IN_PROGRESS\n\n#define ON_'${ENDIAN}'_ENDIAN%' src/other/openNURBS/opennurbs.h + mkdir -p build cd build @@ -97,11 +107,17 @@ cmake \ -DDATA_DIR=share \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DON_${ENDIAN}_ENDIAN=ON \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" .. make make install/strip DESTDIR=$PKG +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG/opt/$PRGNAM/lib/ -print0 | xargs -0 file | grep -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs chmod 755 2> /dev/null || true + find $PKG/opt/$PRGNAM/man -type f -exec gzip -9 {} \; for i in $( find $PKG/opt/$PRGNAM/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done |