aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/phat/phat.SlackBuild11
1 files changed, 6 insertions, 5 deletions
diff --git a/audio/phat/phat.SlackBuild b/audio/phat/phat.SlackBuild
index 647623a551110..efd963b51de08 100644
--- a/audio/phat/phat.SlackBuild
+++ b/audio/phat/phat.SlackBuild
@@ -19,7 +19,7 @@
PRGNAM=phat
VERSION=${VERSION:-0.4.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -66,15 +66,16 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+# Disable Werror (breaks build) and set our CFLAGS
+sed -i -e "s|-Werror||g" -e "s|-O3|${SLKCFLAGS}|g" configure
+
LDFLAGS="-L/lib${LIBDIRSUFFIX} -L/usr/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX}
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION