diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-05-13 00:33:04 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:33:04 +0200 |
commit | decc84ae3929dc125ae8fd138c2dae4dc5cd9ac8 (patch) | |
tree | bde00d223d6e2022a615590744579bdd2975f1c7 /libraries/podofo/podofo.SlackBuild | |
parent | 5f2f8c13cdb175a51428885fdc57a8b62f0f6486 (diff) | |
download | slackbuilds-decc84ae3929dc125ae8fd138c2dae4dc5cd9ac8.tar.gz |
libraries/podofo: Updated for version 0.7.0
Diffstat (limited to 'libraries/podofo/podofo.SlackBuild')
-rw-r--r-- | libraries/podofo/podofo.SlackBuild | 17 |
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} |