|
|
@ -2,7 +2,7 @@ |
|
|
|
# ---------------------------------------------------------------------- |
|
|
|
# Slackware build script for dav1d |
|
|
|
# |
|
|
|
# Copyright (c) 2019-2022 Andrew Strong, Blue Mountains, Australia. |
|
|
|
# Copyright (c) 2019-2023 Andrew Strong, Blue Mountains, Australia. |
|
|
|
# |
|
|
|
# Permission to use, copy, modify, and distribute this software for |
|
|
|
# any purpose with or without fee is hereby granted, provided that |
|
|
@ -26,7 +26,7 @@ |
|
|
|
cd $(dirname $0) ; CWD=$(pwd) |
|
|
|
|
|
|
|
PRGNAM=dav1d |
|
|
|
VERSION=${VERSION:-0.9.2} |
|
|
|
VERSION=${VERSION:-1.1.0} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then |
|
|
|
esac |
|
|
|
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 |
|
|
@ -71,7 +68,7 @@ rm -rf $PKG |
|
|
|
mkdir -p $TMP $PKG $OUTPUT |
|
|
|
rm -rf $TMP/$PRGNAM-$VERSION |
|
|
|
cd $TMP |
|
|
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz |
|
|
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz |
|
|
|
cd $PRGNAM-$VERSION |
|
|
|
chown -R root:root . |
|
|
|
find -L . \ |
|
|
@ -84,7 +81,7 @@ mkdir build |
|
|
|
cd build |
|
|
|
CFLAGS="$SLKCFLAGS" \ |
|
|
|
CXXFLAGS="$SLKCFLAGS" \ |
|
|
|
meson .. \ |
|
|
|
meson setup .. \ |
|
|
|
--buildtype=release \ |
|
|
|
--libdir=/usr/lib${LIBDIRSUFFIX} \ |
|
|
|
--prefix=/usr |
|
|
|