From 8920c3cbc3c85125309a617a08703efb1df47748 Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Sat, 12 Jun 2010 06:44:49 -0500 Subject: libraries/podofo: Updated for version 0.8.0. Signed-off-by: Robby Workman --- libraries/podofo/podofo.SlackBuild | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'libraries/podofo/podofo.SlackBuild') diff --git a/libraries/podofo/podofo.SlackBuild b/libraries/podofo/podofo.SlackBuild index 2f107e6bba..f19cfe906c 100644 --- a/libraries/podofo/podofo.SlackBuild +++ b/libraries/podofo/podofo.SlackBuild @@ -5,9 +5,8 @@ # Written by Larry Hajali PRGNAM=podofo -VERSION=${VERSION:-0.7.0} -ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} +VERSION="0.8.0" +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -15,8 +14,13 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# I changed the default LIBDIRSUFFIX to TRUE/FALSE because -# cmake chooses it for us with -DWANT_LIB64:BOOL. +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" @@ -27,6 +31,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="TRUE" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="FALSE" fi set -e @@ -56,7 +63,7 @@ mkdir build && cd build -DWANT_LIB64:BOOL=$LIBDIRSUFFIX \ -DCMAKE_BUILD_TYPE=Release .. - make + make VERBOSE=1 make install DESTDIR=$PKG cd - @@ -65,7 +72,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS ChangeLog CODING* COPYING* FAQ* INSTALL README* TODO \ + AUTHORS ChangeLog CODING* CONTRIBUTIONS* COPYING* FAQ* INSTALL README* TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3