diff options
Diffstat (limited to 'libraries/libsndfile/libsndfile.SlackBuild')
-rw-r--r-- | libraries/libsndfile/libsndfile.SlackBuild | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/libraries/libsndfile/libsndfile.SlackBuild b/libraries/libsndfile/libsndfile.SlackBuild index aa4fc21e0e..4377ab56bf 100644 --- a/libraries/libsndfile/libsndfile.SlackBuild +++ b/libraries/libsndfile/libsndfile.SlackBuild @@ -15,15 +15,19 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. +# Modified by Eric Hameleers +# - apply a patch if compiling against FLAC > 1.1.2 + PKGNAME=libsndfile VERSION=1.0.17 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=$(pwd) + +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PKGNAME -OUTPUT=${OUTPUT:-/tmp} # Final location of package +OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" @@ -33,10 +37,14 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP +cd $TMP || exit 1 rm -rf $PKGNAME-$VERSION tar -xvzf $CWD/$PKGNAME-$VERSION.tar.gz || exit 1 cd $PKGNAME-$VERSION || exit 1 +# Apply patch for flac > 1.1.2 where the API changed: +if [ $(flac -v | cut -f2 -d' ' | tr -d '.') -gt 112 ]; then + patch -p1 < $CWD/${PKGNAME}_flac.patch || exit 1 +fi chown -R root:root . chmod -R a-s,u+w,go+r-w . @@ -69,7 +77,7 @@ cat $CWD/$PKGNAME.SlackBuild > $PKG/usr/doc/$PKGNAME-$VERSION/$PKGNAME.SlackBuil ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; - for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done ) mkdir -p $PKG/install |