From 4d3d370443d698c453c56b7e7898fd9b45688554 Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 7 Jan 2020 07:52:51 -0800 Subject: [PATCH] audio/FAudio: Updated for version 20.01. Signed-off-by: orbea --- audio/FAudio/FAudio.SlackBuild | 8 ++++++-- audio/FAudio/FAudio.info | 6 +++--- audio/FAudio/README | 6 ++++++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/audio/FAudio/FAudio.SlackBuild b/audio/FAudio/FAudio.SlackBuild index 5e5487129c..a16edef591 100644 --- a/audio/FAudio/FAudio.SlackBuild +++ b/audio/FAudio/FAudio.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for FAudio -# Copyright 2019 Hunter Sezen California, USA +# Copyright 2019-2020 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=FAudio -VERSION=${VERSION:-19.10} +VERSION=${VERSION:-20.01} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,6 +69,8 @@ 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 {} \; +[ "${FFMPEG:=OFF}" != OFF ] && FFMPEG=ON + mkdir -p build cd build cmake \ @@ -76,6 +78,7 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ + -DFFMPEG=$FFMPEG \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG @@ -86,6 +89,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION +[ "$FFMPEG" != ON ] || cp -a README.ffmpeg $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/audio/FAudio/FAudio.info b/audio/FAudio/FAudio.info index 211288af9c..68b03ddb46 100644 --- a/audio/FAudio/FAudio.info +++ b/audio/FAudio/FAudio.info @@ -1,8 +1,8 @@ PRGNAM="FAudio" -VERSION="19.10" +VERSION="20.01" HOMEPAGE="https://fna-xna.github.io/" -DOWNLOAD="https://github.com/FNA-XNA/FAudio/archive/19.10/FAudio-19.10.tar.gz" -MD5SUM="baa212e0a31eb2011ce3450962980310" +DOWNLOAD="https://github.com/FNA-XNA/FAudio/archive/20.01/FAudio-20.01.tar.gz" +MD5SUM="f687b27a6052301af205963d87d4855b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="SDL2" diff --git a/audio/FAudio/README b/audio/FAudio/README index 335072c8ba..2d971dd890 100644 --- a/audio/FAudio/README +++ b/audio/FAudio/README @@ -1,3 +1,9 @@ This is FAudio, an XAudio reimplementation that focuses solely on developing fully accurate DirectX Audio runtime libraries for the FNA project, including XAudio2, X3DAudio, XAPO, and XACT3. + +ffmpeg is an optional dependency for decoding xWMA resources. + +To enable ffmpeg support use: + + FFMPEG=yes ./FAudio.SlackBuild