diff options
Diffstat (limited to 'graphics/FreeCAD')
-rw-r--r-- | graphics/FreeCAD/FreeCAD.SlackBuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/graphics/FreeCAD/FreeCAD.SlackBuild b/graphics/FreeCAD/FreeCAD.SlackBuild index a9c9ae920529..fe520fba52ab 100644 --- a/graphics/FreeCAD/FreeCAD.SlackBuild +++ b/graphics/FreeCAD/FreeCAD.SlackBuild @@ -6,12 +6,21 @@ PRGNAM=FreeCAD VERSION=0.9.2646 -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} SRCVERSION=${VERSION}.5 +# 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 @@ -26,6 +35,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e # Exit on most errors @@ -41,7 +53,7 @@ chmod -R u+w,go+r-w,a-s . # For newer boost versions (as in Slackware -current since 2009/12/17), # correct names of libs (w/o -mt) -#patch -p1 < $CWD/boost_current.patch +patch -p1 < $CWD/boost_current.patch ./autogen.sh |