From 063d3cd94032476dbe0454fca626a55252d2a148 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Tue, 18 May 2010 02:13:44 -0500 Subject: libraries/glibmm: Updated for version 2.22.2. --- libraries/glibmm/glibmm.SlackBuild | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) mode change 100644 => 100755 libraries/glibmm/glibmm.SlackBuild (limited to 'libraries/glibmm/glibmm.SlackBuild') diff --git a/libraries/glibmm/glibmm.SlackBuild b/libraries/glibmm/glibmm.SlackBuild old mode 100644 new mode 100755 index be980b425a..6f03911fc5 --- a/libraries/glibmm/glibmm.SlackBuild +++ b/libraries/glibmm/glibmm.SlackBuild @@ -23,11 +23,20 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PKGNAME=glibmm -VERSION=2.18.2 -ARCH=${ARCH:-i486} +VERSION=2.22.2 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-$PKGNAME @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e -- cgit v1.2.3