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 | |
parent | a6d93895555d77811ae3483ea8065bedd233be19 (diff) |
graphics/brlcad: updated for version 7.38.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | graphics/brlcad/brlcad.SlackBuild | 18 | ||||
-rw-r--r-- | graphics/brlcad/brlcad.info | 6 |
2 files changed, 20 insertions, 4 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 diff --git a/graphics/brlcad/brlcad.info b/graphics/brlcad/brlcad.info index 87bd6cf9d2a53..70d55f439f751 100644 --- a/graphics/brlcad/brlcad.info +++ b/graphics/brlcad/brlcad.info @@ -1,8 +1,8 @@ PRGNAM="brlcad" -VERSION="7.36.0" +VERSION="7.38.0" HOMEPAGE="https://brlcad.org" -DOWNLOAD="https://github.com/BRL-CAD/brlcad/archive/rel-7-36-0/brlcad-7-36-0.tar.gz" -MD5SUM="87b2e59e1ece58292fd42cec7501d38a" +DOWNLOAD="https://github.com/BRL-CAD/brlcad/archive/rel-7-38-0/brlcad-7-38-0.tar.gz" +MD5SUM="6b87e2e662cc63c213ae00584fb40381" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |