summaryrefslogtreecommitdiff
path: root/libraries/libwbxml/libwbxml.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libwbxml/libwbxml.SlackBuild')
-rw-r--r--libraries/libwbxml/libwbxml.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/libraries/libwbxml/libwbxml.SlackBuild b/libraries/libwbxml/libwbxml.SlackBuild
index f26802a34c..30540bd5c7 100644
--- a/libraries/libwbxml/libwbxml.SlackBuild
+++ b/libraries/libwbxml/libwbxml.SlackBuild
@@ -35,8 +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
@@ -61,6 +66,7 @@ cd build
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DDOC_INSTALL_DIR=/usr/doc/$PRGNAM-$VERSION \
+ -DLIB_SUFFIX:STRING=${LIBDIRSUFFIX} \
-DCMAKE_INSTALL_PREFIX=/usr ..
make
@@ -76,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}