summaryrefslogtreecommitdiff
path: root/libraries/libgdiplus/libgdiplus.SlackBuild
diff options
context:
space:
mode:
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 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