diff options
Diffstat (limited to 'libraries/libjxl/libjxl.SlackBuild')
-rw-r--r-- | libraries/libjxl/libjxl.SlackBuild | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libraries/libjxl/libjxl.SlackBuild b/libraries/libjxl/libjxl.SlackBuild index d6ea2f61b413..9b6c860659a1 100644 --- a/libraries/libjxl/libjxl.SlackBuild +++ b/libraries/libjxl/libjxl.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # Slackware build script for libjxl -# Copyright 2022 Vijay Marcel +# Copyright 2022-2023 Vijay Marcel # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,11 +24,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libjxl -VERSION=${VERSION:-20220923_7c0ce23} +VERSION=${VERSION:-20230511_8ec9ed1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -GITNAM=${GITNAM:-7c0ce231165db47a6a065e01afd7d5083e8605a6} +GITNAM=${GITNAM:-8ec9ed1d9824168c01627f663a1dbf07508cc115} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -51,13 +51,13 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" + SLKCFLAGS="-march=i586 -mtune=i686 -pipe -O2 -fPIC" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-march=i686 -mtune=i686 -pipe -O2 -fPIC" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" + SLKCFLAGS="-march=x86-64 -mtune=native -pipe -O2 -fPIC" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" @@ -74,6 +74,7 @@ rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$GITNAM tar xvf $CWD/$PRGNAM-$GITNAM.tar.gz cd $PRGNAM-$GITNAM + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -103,7 +104,7 @@ cmake -B build -S $TMP/$PRGNAM-$GITNAM \ -DJPEGXL_ENABLE_FUZZERS:BOOL='false' \ -DJPEGXL_ENABLE_PLUGINS:BOOL='false' \ -DJPEGXL_ENABLE_VIEWERS:BOOL='true' \ - -DJPEGXL_ENABLE_SIZELESS_VECTORS:BOOL='true' \ + -DJPEGXL_ENABLE_SIZELESS_VECTORS:BOOL='false' \ -DJPEGXL_ENABLE_TCMALLOC:BOOL='true' \ -DJPEGXL_FORCE_SYSTEM_BROTLI:BOOL='true' \ -DJPEGXL_FORCE_SYSTEM_GTEST:BOOL='true' \ @@ -112,9 +113,8 @@ cmake -B build -S $TMP/$PRGNAM-$GITNAM \ -DJPEGXL_ENABLE_SJPEG:BOOL='false' \ -DJPEGXL_STATIC:BOOL='false' -make -C build all doc make -C build DESTDIR="$PKG" install -install -D -m755 build/tools/libjxl_jni.so -t "${PKG}/usr/lib64" +install -D -m755 build/tools/libjxl_jni.so -t "${PKG}/usr/lib${LIBDIRSUFFIX}" rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la @@ -129,7 +129,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTORS LICENSE PATENTS README.md SECURITY.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTORS LICENSE PATENTS README.md SECURITY.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |