aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/podofo/README5
-rw-r--r--libraries/podofo/podofo.SlackBuild17
-rw-r--r--libraries/podofo/podofo.info2
3 files changed, 7 insertions, 17 deletions
diff --git a/libraries/podofo/README b/libraries/podofo/README
index 5b9d6dcb995f1..935c0c95f5b2a 100644
--- a/libraries/podofo/README
+++ b/libraries/podofo/README
@@ -1,7 +1,4 @@
The PoDoFo library is a free, portable C++ library. It can
parse existing PDF files and create new ones from scratch.
-Optional build requirements: boost, cppunit, and lua.
-
-To enable boost support pass HAVE_BOOST=yes to the build script:
- HAVE_BOOST=yes ./podofo.SlackBuild
+Optional build requirements: cppunit and lua.
diff --git a/libraries/podofo/podofo.SlackBuild b/libraries/podofo/podofo.SlackBuild
index e7a0e030fa737..168772e8aee6e 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}
diff --git a/libraries/podofo/podofo.info b/libraries/podofo/podofo.info
index 688098aab4ba1..69739f71eaa32 100644
--- a/libraries/podofo/podofo.info
+++ b/libraries/podofo/podofo.info
@@ -2,7 +2,9 @@ PRGNAM="podofo"
VERSION="0.7.0"
HOMEPAGE="http://podofo.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/podofo/podofo-0.7.0.tar.gz"
+DOWNLOAD_x86_64=""
MD5SUM="b9623fd9279fca49f7cdd5c1fed182b1"
+MD5SUM_x86_64=""
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="rworkman"