summaryrefslogtreecommitdiffstats
path: root/libraries/libffado/libffado.SlackBuild
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo2016-02-07 02:56:35 +0100
committer Willy Sudiarto Raharjo2016-02-07 02:56:35 +0100
commit0bccb0699874ef4b4f78bdcce5535aac16e67865 (patch)
tree35eeaccb7b794e42cc93074b459ec00510b2074f /libraries/libffado/libffado.SlackBuild
parent59b76a143ffe333cc692d01d25c0324c756f377f (diff)
downloadslackbuilds-0bccb0699874ef4b4f78bdcce5535aac16e67865.tar.gz
libraries/libffado: Updated for version 2.2.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libffado/libffado.SlackBuild')
-rw-r--r--libraries/libffado/libffado.SlackBuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/libraries/libffado/libffado.SlackBuild b/libraries/libffado/libffado.SlackBuild
index 1d71ac9a37..f0bc67fb3b 100644
--- a/libraries/libffado/libffado.SlackBuild
+++ b/libraries/libffado/libffado.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libffado
-VERSION=2.1.0
+VERSION=${VERSION:-2.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -64,18 +64,21 @@ tar xvf $CWD/$PRGNAM-$VERSION.tgz
cd $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 \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -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 {} \;
# Use our CFLAGS
sed -i "s/-O2 -DNDEBUG/$SLKCFLAGS -DNDEBUG/" SConstruct
+patch -p1 < $CWD/libffado-mixer.patch
+
scons \
PREFIX=/usr \
LIBDIR=/usr/lib${LIBDIRSUFFIX} \
DIST_TARGET="$TARGET" \
+ COMPILE_FLAGS="$CFLAGS -std=gnu++11" \
DEBUG="False"
scons \
@@ -93,14 +96,14 @@ install -m 0644 support/xdg/ffado.org-ffadomixer.desktop \
install -m 0644 support/xdg/hi64-apps-ffado.png \
$PKG/usr/share/pixmaps/ffado.png
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog LICENSE* NEWS README TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog LICENSE* README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install