aboutsummaryrefslogtreecommitdiff
path: root/libraries/libgdiplus/libgdiplus.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-21 08:48:16 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-23 23:21:39 -0500
commit52b535c830b0581b3a2980a6f07b21992125f44d (patch)
treed84fcf92ab3bdd12a0d36916472debd80c6e1263 /libraries/libgdiplus/libgdiplus.SlackBuild
parent883a33afd729d1d08d88a8b626a57f948d793def (diff)
libraries/libgdiplus: Updated for version 2.6.4.
Diffstat (limited to 'libraries/libgdiplus/libgdiplus.SlackBuild')
-rw-r--r--libraries/libgdiplus/libgdiplus.SlackBuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/libraries/libgdiplus/libgdiplus.SlackBuild b/libraries/libgdiplus/libgdiplus.SlackBuild
index 942f876edbea5..ea0cf79e29e6c 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