aboutsummaryrefslogtreecommitdiff
path: root/audio/phat/phat.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-21 15:47:40 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-22 11:39:48 -0500
commitf9cde997c46039666a6b25e35de039274664982f (patch)
tree78e49681fdc959c3a771aecfd9a6c44049394c6b /audio/phat/phat.SlackBuild
parent17cfbdfe7a7f38ab5dbdd69cc76d6086bb9e56d6 (diff)
audio/phat: Disabled -Werror and forced our CFLAGS.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/phat/phat.SlackBuild')
-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 647623a55111..efd963b51de0 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