summaryrefslogtreecommitdiff
path: root/audio/faad2/faad2.SlackBuild
diff options
context:
space:
mode:
authorNiklas Nille Åkerström <nille.kungen[AT]gmail.com>2010-05-13 00:21:02 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:21:02 +0200
commitf3a2aaefc89e4b0f6eef4d3f9acb675b58c83829 (patch)
tree2e4c041b7fd3ce40f3b80a607aade2ece131992f /audio/faad2/faad2.SlackBuild
parentb5f28bd83da9611c97df8de854878da530e6bd53 (diff)
downloadslackbuilds-f3a2aaefc89e4b0f6eef4d3f9acb675b58c83829.tar.gz
audio/faad2: Updated for version 2.7
Diffstat (limited to 'audio/faad2/faad2.SlackBuild')
-rw-r--r--audio/faad2/faad2.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/audio/faad2/faad2.SlackBuild b/audio/faad2/faad2.SlackBuild
index b9f42d7029..04b40d6048 100644
--- a/audio/faad2/faad2.SlackBuild
+++ b/audio/faad2/faad2.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for faad2
-#
+
# Copyright 2007 Niklas "Nille" Åkerström
# All rights reserved.
#
@@ -35,10 +35,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
set -e
@@ -56,6 +59,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--with-drm \
--mandir=/usr/man \
--enable-shared=yes \
@@ -83,7 +87,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