graphics/FreeCAD: Miscellaneous cleanups and enable boost patch.

This commit is contained in:
dsomero 2010-05-23 03:57:57 -04:00 committed by David Somero
parent a31e0890fb
commit 5ce2f05227

View file

@ -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