Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libraries/libavif/README
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ 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
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.
to be installed. By default this is also turned off.

usage:
-------
Expand Down
39 changes: 22 additions & 17 deletions libraries/libavif/libavif.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Slackware build script for libavif

# Copyright 2022-2025 Vijay Marcel
# Copyright 2022-2026 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
Expand All @@ -11,6 +11,10 @@
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
Expand Down Expand Up @@ -40,26 +44,26 @@
# 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
# architectures. Gtest needs to be installed if want to build
# test during compile time, by default this is turned off.

# 06/02/2024: Updated to version 1.0.3
# 19/02/2024: Updated to version 1.0.4
# 14/08/2024: Updated to version 1.1.1
# 18/04/2025: updated to version 1.2.1
# 13/05/2025: Updated to version 1.3.0

# 20/05/2026: updated to version 1.4.1
# ---------------------------------------------------------------------------------

cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=libavif
VERSION=${VERSION:-1.3.0}
VERSION=${VERSION:-1.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
depnam=${depnam:-libargparse}
depcommit=${depcommit:-ee74d1b53bd680748af14e737378de57e2a0a954}
depcommit=${depcommit:-81998ffafb9c2ac8cf488d31e536a2e6fd6b3fdf}

if [ -z "$ARCH" ]; then
case "$( uname -m )" in
Expand All @@ -78,21 +82,17 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-march=i586 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-march=i686 -mtune=i686 -pipe -O2 -fPIC"
if [ "$ARCH" = "i586" -o "$ARCH" = "i686" ]; then
SLKCFLAGS="-march=$ARCH -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-march=x86-64 -mtune=generic -pipe -O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
echo "This SlackBuild will not run on $ARCH" && exit 1
fi

set -e
set -euo pipefail
trap 'echo "$0 FAILED at line $LINENO!" | tee $OUTPUT/error-${PRGNAM}.log' ERR

rm -rf $PKG
Expand All @@ -108,9 +108,13 @@ cd $TMP/$PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
-o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+

export PATH=/opt/cmake-opt/bin:/opt/cmake-opt/share/cmake-3.31/Modules:/opt/cmake-opt/share/aclocal:$PATH

cmake --version

# libargparse is a build time dependency
cd $TMP/$PRGNAM-$VERSION/ext/$depnam
Expand All @@ -122,7 +126,7 @@ ninja -C $depnam/build

cd $TMP/$PRGNAM-$VERSION

cmake -B build -S $TMP/$PRGNAM-$VERSION \
cmake -B build -S $TMP/$PRGNAM-$VERSION \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DBUILD_SHARED_LIBS:BOOL=ON \
Expand All @@ -133,6 +137,7 @@ cmake -B build -S $TMP/$PRGNAM-$VERSION \
-DAVIF_JPEG=SYSTEM \
-DAVIF_LIBYUV=SYSTEM \
-DAVIF_LIBXML2=SYSTEM \
-DAVIF_ENABLE_EXPERIMENTAL_EXTENDED_PIXI=OFF \
-DAVIF_CODEC_AOM:BOOL=SYSTEM \
-DAVIF_CODEC_DAV1D:BOOL=SYSTEM \
-DAVIF_CODEC_SVT:BOOL=SYSTEM \
Expand Down Expand Up @@ -171,4 +176,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
/sbin/makepkg -l y -c n --remove-rpaths --remove-tmp-rpaths $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
12 changes: 6 additions & 6 deletions libraries/libavif/libavif.info
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PRGNAM="libavif"
VERSION="1.3.0"
VERSION="1.4.1"
HOMEPAGE="https://github.com/AOMediaCodec/libavif"
DOWNLOAD="https://github.com/AOMediaCodec/libavif/archive/v1.3.0/libavif-1.3.0.tar.gz \
https://github.com/kmurray/libargparse/archive/ee74d1b/libargparse-ee74d1b53bd680748af14e737378de57e2a0a954.tar.gz"
MD5SUM="e180551c0989f7e096a4440b89d6282d \
e8f6d28aa9039973c40d31186ed22de7"
DOWNLOAD="https://github.com/AOMediaCodec/libavif/archive/v1.4.1/libavif-1.4.1.tar.gz \
https://github.com/maryla-uc/libargparse/archive/81998ff/libargparse-81998ffafb9c2ac8cf488d31e536a2e6fd6b3fdf.tar.gz"
MD5SUM="80cf307b9d7effa7cebd67423be8f5e2 \
dfece779aeb1fddf9a742f4ae85573bd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="aom dav1d svt-av1 libyuv"
REQUIRES="cmake-opt aom dav1d svt-av1 libyuv"
MAINTAINER="Vijay Marcel"
EMAIL="vijaymarcel@outlook.com"
2 changes: 1 addition & 1 deletion libraries/libavif/slack-desc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ libavif: libavif (AVIF Encoding and Decoding Library)
libavif:
libavif: This library aims to be a portable C implementation of
libavif: AV1 image file format.It can encode and decode all AOM
libavif: supported YUV formats and bit depths.
libavif: supported YUV formats and bit depths.
libavif:
libavif: Homepage:https://github.com/AOMediaCodec/libavif
libavif:
Expand Down