diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-16 09:24:38 +0200 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-09-16 19:44:41 -0400 |
commit | 5958c5006350be7f98ad0f07ab1eb92998e5c613 (patch) | |
tree | 42d2536652b42b62482a7d2cea319ddca33aabd0 /audio/clam/clam.SlackBuild | |
parent | cdd811af8e7244b3446cd052b43cae21acd7d5d6 (diff) |
audio/clam: Updated for subversion revision 15298.
Added a fix for an improperly called header.
Exported CFLAGS like required by the scons script
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/clam/clam.SlackBuild')
-rw-r--r-- | audio/clam/clam.SlackBuild | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/audio/clam/clam.SlackBuild b/audio/clam/clam.SlackBuild index 3e5a01a7bb47d..2a718dd82eee6 100644 --- a/audio/clam/clam.SlackBuild +++ b/audio/clam/clam.SlackBuild @@ -5,7 +5,7 @@ # Written by B. Watson (yalhcru@gmail.com) PRGNAM=clam -VERSION=${VERSION:-1.4.0} +VERSION=${VERSION:-r15298} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -44,7 +44,7 @@ rm -rf $PKG mkdir -p $TMP $PKG/usr $OUTPUT # NB: $PKG/usr must exist, not just $PKG cd $TMP rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +tar xvf $CWD/$SRCNAM-$VERSION.tar.?z* cd $SRCNAM-$VERSION chown -R root:root . find . \ @@ -53,16 +53,19 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# An include is called incorrectly +patch -p1 < $CWD/wrong_include.patch + # Annoying scons script has hard-coded self.lib = self.prefix + '/lib' if [ "$LIBDIRSUFFIX" != "" ]; then sed -i "s,/lib\>,/lib$LIBDIRSUFFIX," scons/libs/clam_build_helpers.py fi -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +CCFLAGS="$SLKCFLAGS" \ +CPPFLAGS="$SLKCFLAGS" \ scons configure \ - with-fftw3=1 \ - release=1 \ + with_fftw3=yes \ + release=yes \ prefix=/usr \ prefix_for_packaging=$PKG/usr @@ -70,6 +73,8 @@ scons scons install strip $PKG/usr/lib$LIBDIRSUFFIX/*.so.*.* +mv $PKG/usr/share/man $PKG/usr/man + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a CHANGES examples $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |