diff options
author | Vijay Marcel <vijaymarcel@outlook.com> | 2024-04-29 20:58:25 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-05-04 21:44:58 +0700 |
commit | 0dabe7df75a404f1641d9c6e123cc4dae342c8a1 (patch) | |
tree | bd28660aa842e1d924cf4b69e4eb4d0295adf266 | |
parent | 5fbc3b11a3b55d855334502ad1ff4755f152667f (diff) |
multimedia/xavs2: Mark for x86_64 only.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | multimedia/xavs2/xavs2.SlackBuild | 37 | ||||
-rw-r--r-- | multimedia/xavs2/xavs2.info | 8 |
2 files changed, 19 insertions, 26 deletions
diff --git a/multimedia/xavs2/xavs2.SlackBuild b/multimedia/xavs2/xavs2.SlackBuild index 64ac9672934fa..d140ef2ae7d81 100644 --- a/multimedia/xavs2/xavs2.SlackBuild +++ b/multimedia/xavs2/xavs2.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for xavs2 -# Copyright 2022, Vijay Marcel +# Copyright 2022-2024, Vijay Marcel # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -29,37 +29,31 @@ VERSION=${VERSION:-1.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +sys_arch=${sys_arch:-$(uname -m)} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) export ARCH=i586 ;; - arm*) export ARCH=arm ;; - *) export ARCH=$( uname -m ) ;; - esac -fi +case "$sys_arch" in + x86_64) export ARCH=x86_64 ;; + *) echo "This program will not build on $sys_arch platform" && exit 1 ;; +esac TMP=${TMP:-/tmp/SBo} 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=generic -pipe -O2 -fPIC" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" fi - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -74,7 +68,6 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION -cd build/linux/ chown -R root:root . find -L . \ @@ -83,6 +76,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +cd build/linux/ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -90,11 +84,10 @@ CXXFLAGS="$SLKCFLAGS" \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --bindir=/usr/bin \ --enable-shared \ - --bit-depth='8' \ - --chroma-format='all' \ - --enable-lto \ - --system-libxavs2 \ - --enable-strip + --bit-depth=8 \ + --chroma-format=all \ + --enable-strip \ + --disable-asm make make install DESTDIR=$PKG @@ -105,7 +98,7 @@ cd ../.. rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la 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 + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/multimedia/xavs2/xavs2.info b/multimedia/xavs2/xavs2.info index 8ac339e43dd6a..68dda4eedca4f 100644 --- a/multimedia/xavs2/xavs2.info +++ b/multimedia/xavs2/xavs2.info @@ -1,10 +1,10 @@ PRGNAM="xavs2" VERSION="1.4" HOMEPAGE="https://github.com/pkuvcl/xavs2" -DOWNLOAD="https://github.com/pkuvcl/xavs2/archive/1.4/xavs2-1.4.tar.gz" -MD5SUM="b776941aad474fed23da1d1eb0c0b720" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/pkuvcl/xavs2/archive/1.4/xavs2-1.4.tar.gz" +MD5SUM_x86_64="b776941aad474fed23da1d1eb0c0b720" REQUIRES="" MAINTAINER="Vijay Marcel" EMAIL="vijaymarcel@outlook.com" |