mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
graphics/FreeCAD: Miscellaneous cleanups and enable boost patch.
This commit is contained in:
parent
a31e0890fb
commit
5ce2f05227
1 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue