games/bloodfrontier: Fixed underlinking.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2012-09-11 18:28:13 +02:00
parent b78387e02e
commit ab4b1b4924

View file

@ -11,7 +11,7 @@
PRGNAM=bloodfrontier
VERSION=${VERSION:-0.85}
SVERSION=${SVERSION:-B2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -39,6 +39,10 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
SLKLDFLAGS="-L/usr/lib64 -L/lib64"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
SLKLDFLAGS="-L/usr/lib -L/lib"
fi
set -e # Exit on most errors
@ -56,6 +60,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
sed -i "s|X11R6/lib|lib${LIBDIRSUFFIX} -lX11|" src/Makefile
make -C src \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \