summaryrefslogtreecommitdiffstats
path: root/audio/faac/faac.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/faac/faac.SlackBuild')
-rw-r--r--audio/faac/faac.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/audio/faac/faac.SlackBuild b/audio/faac/faac.SlackBuild
index a0b687885e..342ade25d7 100644
--- a/audio/faac/faac.SlackBuild
+++ b/audio/faac/faac.SlackBuild
@@ -38,10 +38,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
# Seems that libmp4v2 is a complicated critter. Here's how we think it works:
@@ -54,6 +57,14 @@ fi
# Therefore, we'll default to use --without-mp4v2, which should produce the
# desired result in every case *except* where one wants to use the internal
# implementation, and that creates other problems, so we don't support it.
+#
+# From what used to be in our README:
+# faac comes with its own version of libmp4v2, but if you use it, you have to
+# uninstall faac everytime you want to update it, as faac would otherwise
+# detect the already installed libmp4v2 and build against it. Then, when you
+# upgrade to the new package, it doesn't have the included libmp4v2, because
+# it was part of the old package, so faac is linking to a nonexistent library
+# after the upgrade.
set -e
@@ -74,6 +85,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--enable-shared=yes \
--enable-static=no \
@@ -99,7 +111,7 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
if [ "$1" = "--cleanup" ]; then
rm -rf $PKG $TMP/$PRGNAM-$VERSION