aboutsummaryrefslogtreecommitdiff
path: root/audio/dcd/dcd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/dcd/dcd.SlackBuild')
-rw-r--r--audio/dcd/dcd.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/audio/dcd/dcd.SlackBuild b/audio/dcd/dcd.SlackBuild
index e460a784130bb..9d022697c6d6f 100644
--- a/audio/dcd/dcd.SlackBuild
+++ b/audio/dcd/dcd.SlackBuild
@@ -17,10 +17,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 # Exit on most errors
@@ -41,9 +44,7 @@ find . \
# Patch the Makefile to fix the cdrom device dcd looks for (/dev/cdrom):
patch -p0 < $CWD/Makefile.diff
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-make
+CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make
# Install the package:
ginstall -m 755 -d $PKG/usr/bin
@@ -71,4 +72,4 @@ 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}