libraries/podofo: Updated for version 0.7.0

This commit is contained in:
Larry Hajali 2010-05-13 00:33:04 +02:00 committed by Robby Workman
parent 5f2f8c13cd
commit decc84ae39
3 changed files with 7 additions and 17 deletions

View file

@ -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.

View file

@ -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}

View file

@ -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"