aboutsummaryrefslogtreecommitdiff
path: root/audio/rosegarden/rosegarden.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/rosegarden/rosegarden.SlackBuild')
-rw-r--r--audio/rosegarden/rosegarden.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/rosegarden/rosegarden.SlackBuild b/audio/rosegarden/rosegarden.SlackBuild
index 16c13c3901136..2b79be4066886 100644
--- a/audio/rosegarden/rosegarden.SlackBuild
+++ b/audio/rosegarden/rosegarden.SlackBuild
@@ -42,10 +42,13 @@ LIRC=${LIRC:-no}
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=""
fi
if [ "$LIRC" = 'yes' ]; then
@@ -73,6 +76,7 @@ cmake \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX="$LIBDIRSUFFIX" \
-DWANT_LIRC=$LIRCOPT
make
@@ -90,4 +94,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}