diff options
author | Vijay Marcel <vijaymarcel@outlook.com> | 2023-05-18 22:09:34 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-20 11:17:10 +0700 |
commit | 212798f22053c0c6637a0546b96c9fa3b21ffcbf (patch) | |
tree | 6c7677e117e52feac9ff8d75b9a75e1a7b48d0ae | |
parent | 7c1010bd3c4c9750573a730cf66fb2daddee0db1 (diff) |
libraries/libavif: Updated for version 20230512_94352e0.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/libavif/README | 14 | ||||
-rw-r--r-- | libraries/libavif/changelog | 13 | ||||
-rw-r--r-- | libraries/libavif/libavif.SlackBuild | 67 | ||||
-rw-r--r-- | libraries/libavif/libavif.info | 8 |
4 files changed, 32 insertions, 70 deletions
diff --git a/libraries/libavif/README b/libraries/libavif/README index ae0832201745..c7c9ec425ef7 100644 --- a/libraries/libavif/README +++ b/libraries/libavif/README @@ -6,6 +6,14 @@ It builds an decoder avifdec and encoder avifenc. avifdec can convert from avif to jpeg or png image. avifenc can encode jpeg or png to avif image. +By default man page generation is turned off hence from +now on pandoc is an optional dependency.Alternative +documentation for avifdec and avifenc is provided in +/usr/doc/libavif-$VERSION in the form of markdown files. + +If you enable tests in the build script then gtest needs +to be installed. By default this is also turned off. + usage: ------- @@ -16,9 +24,3 @@ avifdec -h will show help avifenc [-options] input.jpg|jpeg|png|y4m output.avif avifenc -h will show help - -Note For 32-bit users: ------------------------ - -Pandoc is an optional dependency since man pages -are disabled by default for 32-bit users. diff --git a/libraries/libavif/changelog b/libraries/libavif/changelog index 793fcf0ae463..91ed097c2861 100644 --- a/libraries/libavif/changelog +++ b/libraries/libavif/changelog @@ -10,7 +10,7 @@ Added to slackbuilds.org Updated README Updated to github commit 93035c1 -Pandoc is used by libavif to build manpages. If you don't need +Pandoc is used by libavif to build man pages. If you don't need manpages don't install pandoc and change the appropriate build option. @@ -20,3 +20,14 @@ since it takes much time to build, I'm not building the manpages by default. If you need manpages install pandoc and then customize the slackbuild script by changing the build option for manpages from OFF to ON. + +15/05/2023: + +updated to github commit 94352e0 +updated Deps in info file and README + +From this build onward man pages are not built by default +hence pandoc will now be an optional dependency for all +architectures. Gtest needs to be installed if want to build +test during compile time, by default this is turned off. + diff --git a/libraries/libavif/libavif.SlackBuild b/libraries/libavif/libavif.SlackBuild index 047e9ed35012..675495a9dc26 100644 --- a/libraries/libavif/libavif.SlackBuild +++ b/libraries/libavif/libavif.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libavif -# Copyright 2022 Vijay Marcel +# Copyright 2022-2023 Vijay Marcel # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,11 +25,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libavif -VERSION=${VERSION:-20221216_93035c1} +VERSION=${VERSION:-20230512_94352e0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -GITNAM=${GITNAM:-93035c173c934813b16751872fbe2f535aa7086b} +GITNAM=${GITNAM:-94352e0e203aaeec8427882c66f37f75d7391139} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -52,13 +52,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" @@ -82,50 +82,6 @@ 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 {} \; - -if [ "$ARCH" = "x86_64" ]; then - -echo "Builing for x86_64 Architecture" - -cmake -B build -S $TMP/$PRGNAM-$GITNAM \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DBUILD_SHARED_LIBS:BOOL=ON \ - -DAVIF_ENABLE_WERROR:BOOL=ON \ - -DAVIF_CODEC_AOM:BOOL=ON \ - -DAVIF_CODEC_AOM_DECODE:BOOL=ON \ - -DAVIF_CODEC_AOM_ENCODE:BOOL=ON \ - -DAVIF_CODEC_DAV1D:BOOL=ON \ - -DAVIF_CODEC_LIBGAV1:BOOL=OFF \ - -DAVIF_CODEC_RAV1E:BOOL=OFF \ - -DAVIF_CODEC_SVT:BOOL=ON \ - -DAVIF_BUILD_APPS:BOOL=ON \ - -DAVIF_BUILD_TESTS:BOOL=OFF \ - -DAVIF_ENABLE_GTEST:BOOL=OFF \ - -DAVIF_BUILD_MAN_PAGES:BOOL=ON \ - -DCMAKE_INSTALL_PREFIX:PATH=/usr \ - -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib${LIBDIRSUFFIX} \ - -DCMAKE_INSTALL_BINDIR:PATH=/usr/bin \ - -DCMAKE_INSTALL_MANDIR=/usr/man \ - -DCMAKE_BUILD_TYPE=Release - -make -C build -make -C build install DESTDIR=$PKG - -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 - -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - -elif [ "$ARCH" = "i586" ]; then - -echo "Builing for x86 Architecture" -echo "No man pages will be built for x86 architecture, Refer README and changelog for details" -echo "If you need Man Pages for x86 architecture you have to build pandoc from sources" - cmake -B build -S $TMP/$PRGNAM-$GITNAM \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ @@ -137,6 +93,7 @@ cmake -B build -S $TMP/$PRGNAM-$GITNAM \ -DAVIF_CODEC_DAV1D:BOOL=ON \ -DAVIF_CODEC_LIBGAV1:BOOL=OFF \ -DAVIF_CODEC_RAV1E:BOOL=OFF \ + -DAVIF_CODEC_AVM:BOOL=OFF \ -DAVIF_CODEC_SVT:BOOL=ON \ -DAVIF_BUILD_APPS:BOOL=ON \ -DAVIF_BUILD_TESTS:BOOL=OFF \ @@ -156,16 +113,8 @@ 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 -else - -echo "Unsupported Architecture, Aborting the build process ....." - -fi - -find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README.md CHANGELOG.md doc/avifdec.1.md doc/avifenc.1.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md CHANGELOG.md SECURITY.md doc/avifdec.1.md doc/avifenc.1.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/libraries/libavif/libavif.info b/libraries/libavif/libavif.info index 26ab8d6cb26c..5fbbccd543f8 100644 --- a/libraries/libavif/libavif.info +++ b/libraries/libavif/libavif.info @@ -1,10 +1,10 @@ PRGNAM="libavif" -VERSION="20221216_93035c1" +VERSION="20230512_94352e0" HOMEPAGE="https://github.com/AOMediaCodec/libavif" -DOWNLOAD="https://github.com/AOMediaCodec/libavif/archive/93035c1/libavif-93035c173c934813b16751872fbe2f535aa7086b.tar.gz" -MD5SUM="4788b4ca1eee83b3350fd7a61c4209cd" +DOWNLOAD="https://github.com/AOMediaCodec/libavif/archive/94352e0/libavif-94352e0e203aaeec8427882c66f37f75d7391139.tar.gz" +MD5SUM="e47cc56b7b46021d71f01e09f442c5b5" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="aom dav1d svt-av1 libyuv pandoc-bin" +REQUIRES="aom dav1d svt-av1 libyuv" MAINTAINER="Vijay Marcel" EMAIL="vijaymarcel@outlook.com" |