summaryrefslogtreecommitdiff
path: root/libraries/podofo/podofo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/podofo/podofo.SlackBuild')
-rw-r--r--libraries/podofo/podofo.SlackBuild17
1 files changed, 4 insertions, 13 deletions
diff --git a/libraries/podofo/podofo.SlackBuild b/libraries/podofo/podofo.SlackBuild
index e7a0e030fa..168772e8ae 100644
--- a/libraries/podofo/podofo.SlackBuild
+++ b/libraries/podofo/podofo.SlackBuild
@@ -7,7 +7,7 @@
PRGNAM=podofo
VERSION=${VERSION:-0.7.0}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -15,11 +15,9 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# Determine if we use Boost. Default is no.
-HAVE_BOOST=${HAVE_BOOST:-no}
-
# I changed the default LIBDIRSUFFIX to TRUE/FALSE because
# cmake chooses it for us with -DWANT_LIB64:BOOL.
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX="FALSE"
@@ -29,7 +27,6 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="TRUE"
- HAVE_BOOST=yes
fi
set -e
@@ -47,12 +44,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-if [ $HAVE_BOOST == "no" ]; then
- USE_BOOST="0"
-else
- USE_BOOST="1"
-fi
-
mkdir build && cd build
cmake -G "Unix Makefiles" \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -61,7 +52,7 @@ mkdir build && cd build
-DPODOFO_BUILD_STATIC:BOOL=FALSE \
-DPODOFO_BUILD_SHARED:BOOL=TRUE \
-DPODOFO_USE_VISIBILITY=1 \
- -DWANT_BOOST:BOOL=$USE_BOOST \
+ -DWANT_BOOST:BOOL=1 \
-DWANT_LIB64:BOOL=$LIBDIRSUFFIX \
-DCMAKE_BUILD_TYPE=Release ..
@@ -86,4 +77,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}