From f9cde997c46039666a6b25e35de039274664982f Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Fri, 21 Sep 2012 15:47:40 +0200 Subject: audio/phat: Disabled -Werror and forced our CFLAGS. Signed-off-by: Matteo Bernardini --- audio/phat/phat.SlackBuild | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'audio/phat/phat.SlackBuild') 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 -- cgit v1.2.3