summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-05-13 00:33:04 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:33:04 +0200
commitdecc84ae3929dc125ae8fd138c2dae4dc5cd9ac8 (patch)
treebde00d223d6e2022a615590744579bdd2975f1c7
parent5f2f8c13cdb175a51428885fdc57a8b62f0f6486 (diff)
downloadslackbuilds-decc84ae3929dc125ae8fd138c2dae4dc5cd9ac8.tar.gz
libraries/podofo: Updated for version 0.7.0
-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 5b9d6dcb99..935c0c95f5 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 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}
diff --git a/libraries/podofo/podofo.info b/libraries/podofo/podofo.info
index 688098aab4..69739f71ea 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"