summaryrefslogtreecommitdiff
path: root/libraries/librtfcomp/librtfcomp.SlackBuild
diff options
context:
space:
mode:
authorLionel Young <redtricycle@gmail.com>2010-05-13 00:31:45 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:31:45 +0200
commit054ca014b219e76940571bc864ff9e61bb22b1a1 (patch)
treea237fe31eace425e57cd7366c563c662a4cc0d91 /libraries/librtfcomp/librtfcomp.SlackBuild
parentf4ce0ba781588048c27b9e637d0a0b06b5ca24d2 (diff)
downloadslackbuilds-054ca014b219e76940571bc864ff9e61bb22b1a1.tar.gz
libraries/librtfcomp: Updated for version 1.1
Diffstat (limited to 'libraries/librtfcomp/librtfcomp.SlackBuild')
-rw-r--r--libraries/librtfcomp/librtfcomp.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/libraries/librtfcomp/librtfcomp.SlackBuild b/libraries/librtfcomp/librtfcomp.SlackBuild
index 1e830ba512..f4c76a969b 100644
--- a/libraries/librtfcomp/librtfcomp.SlackBuild
+++ b/libraries/librtfcomp/librtfcomp.SlackBuild
@@ -15,10 +15,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
@@ -43,6 +46,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -78,4 +82,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}