diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 08:48:16 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-23 23:21:39 -0500 |
commit | 52b535c830b0581b3a2980a6f07b21992125f44d (patch) | |
tree | d84fcf92ab3bdd12a0d36916472debd80c6e1263 /libraries/libgdiplus/libgdiplus.SlackBuild | |
parent | 883a33afd729d1d08d88a8b626a57f948d793def (diff) | |
download | slackbuilds-52b535c830b0581b3a2980a6f07b21992125f44d.tar.gz |
libraries/libgdiplus: Updated for version 2.6.4.
Diffstat (limited to 'libraries/libgdiplus/libgdiplus.SlackBuild')
-rw-r--r-- | libraries/libgdiplus/libgdiplus.SlackBuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libraries/libgdiplus/libgdiplus.SlackBuild b/libraries/libgdiplus/libgdiplus.SlackBuild index 942f876edb..ea0cf79e29 100644 --- a/libraries/libgdiplus/libgdiplus.SlackBuild +++ b/libraries/libgdiplus/libgdiplus.SlackBuild @@ -25,11 +25,20 @@ # Modified by the SlackBuilds.org project PRGNAM=libgdiplus -VERSION=2.4.2 -ARCH=${ARCH:-i486} +VERSION=2.6.4 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -44,6 +53,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |