From ab4b1b49245ac7b5e6962c8d39ea65d50b09a97d Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Tue, 11 Sep 2012 18:28:13 +0200 Subject: games/bloodfrontier: Fixed underlinking. Signed-off-by: Matteo Bernardini --- games/bloodfrontier/bloodfrontier.SlackBuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/games/bloodfrontier/bloodfrontier.SlackBuild b/games/bloodfrontier/bloodfrontier.SlackBuild index a01da80df2..009392234d 100644 --- a/games/bloodfrontier/bloodfrontier.SlackBuild +++ b/games/bloodfrontier/bloodfrontier.SlackBuild @@ -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" \ -- cgit v1.2.3