diff options
Diffstat (limited to 'audio/FAudio/FAudio.SlackBuild')
-rw-r--r-- | audio/FAudio/FAudio.SlackBuild | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/audio/FAudio/FAudio.SlackBuild b/audio/FAudio/FAudio.SlackBuild index 3a257a7e7a187..cfa49835dcb29 100644 --- a/audio/FAudio/FAudio.SlackBuild +++ b/audio/FAudio/FAudio.SlackBuild @@ -2,6 +2,7 @@ # Slackware build script for FAudio +# Copyright 2022 Steven Voges <Oregon, USA> # Copyright 2019-2020 Hunter Sezen California, USA # All rights reserved. # @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=FAudio -VERSION=${VERSION:-20.11} +VERSION=${VERSION:-22.08} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,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 @@ -79,28 +77,12 @@ 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 {} \; -# gstreamer and gst-plugins-base are too old in Slackware 14.2. -if pkg-config --atleast-version 1.9.2 gstreamer-1.0 && - pkg-config --atleast-version 1.9.2 gstreamer-audio-1.0 && - pkg-config --atleast-version 1.9.2 gstreamer-app-1.0; then - GST=ON -else - GST=OFF -fi - -# cmake: Fix compatiblity with older cmake versions. -# https://github.com/FNA-XNA/FAudio/commit/6a1b6b5d7bc237635d8cbc143b42418c16651a35 -# https://github.com/FNA-XNA/FAudio/pull/227 -# https://github.com/FNA-XNA/FAudio/issues/226 -patch -p1 < $CWD/0001-cmake.patch - mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ - -DGSTREAMER=$GST \ -DCMAKE_SKIP_RPATH=TRUE \ -DCMAKE_BUILD_TYPE=Release .. make @@ -111,7 +93,8 @@ 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |