aboutsummaryrefslogtreecommitdiff
path: root/libraries/libyuv/libyuv.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libyuv/libyuv.SlackBuild')
-rw-r--r--libraries/libyuv/libyuv.SlackBuild31
1 files changed, 20 insertions, 11 deletions
diff --git a/libraries/libyuv/libyuv.SlackBuild b/libraries/libyuv/libyuv.SlackBuild
index ba44bfc687..81457d8205 100644
--- a/libraries/libyuv/libyuv.SlackBuild
+++ b/libraries/libyuv/libyuv.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libyuv
-# Copyright 2022-2024 Vijay Marcel
+# Copyright 2022-2025 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,14 +22,24 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Changelog for libyuv SlackBuild Script
+# --------------------------------------------------------------------------------
+
+# 01/10/2022: Added to SlackBuilds.org
+# 15/05/2023: Updated to Debian git commit 62af467 on 07/01/2023
+# 06/02/2023: Updated to Debian git commit 95d8726 on 16/01/2024
+# 18/04/2025: updated to version 0.0.1904.20250204
+
+# ----------------------------------------------------------------------------------
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libyuv
-VERSION=${VERSION:-20240116_95d8726}
+VERSION=${VERSION:-0.0.1904.20250204}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-GITNAM=${GITNAM:-95d8726b0b8e4a8ef1a4a921fe87cdf563b647a3}
+GITNAM=${GITNAM:-libyuv-upstream}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -68,10 +78,9 @@ trap 'echo "$0 FAILED at line $LINENO!" | tee $OUTPUT/error-${PRGNAM}.log' ERR
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-rm -rf $PRGNAM-$GITNAM
-tar xvf $CWD/$PRGNAM-$GITNAM.tar.gz
-cd $PRGNAM-$GITNAM
+rm -rf $GITNAM-$VERSION
+tar xvf $CWD/$GITNAM-$VERSION.tar.gz
+cd $GITNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -80,10 +89,10 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
if [ "$ARCH" = "x86_64" ]; then
- sed -i 's+DESTINATION lib+DESTINATION lib64+g' $TMP/$PRGNAM-$GITNAM/CMakeLists.txt
+ sed -i 's+DESTINATION lib+DESTINATION lib64+g' $TMP/$GITNAM-$VERSION/CMakeLists.txt
fi
-cmake -B build -S $TMP/$PRGNAM-$GITNAM \
+cmake -B build -S $TMP/$GITNAM-$VERSION \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -95,10 +104,10 @@ cmake -B build -S $TMP/$PRGNAM-$GITNAM \
make -C build
make -C build install DESTDIR=$PKG
-rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+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
+ | 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 AUTHORS DEPS LICENSE OWNERS PATENTS README.md README.chromium docs/* $PKG/usr/doc/$PRGNAM-$VERSION