diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-11 18:28:13 +0200 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-11 18:29:12 +0200 |
commit | ab4b1b49245ac7b5e6962c8d39ea65d50b09a97d (patch) | |
tree | 51986085c67aaaafb5849078867f811ef0ce4834 /games/bloodfrontier | |
parent | b78387e02e8c385ffa35059d953992a27bf41796 (diff) | |
download | slackbuilds-ab4b1b49245ac7b5e6962c8d39ea65d50b09a97d.tar.gz |
games/bloodfrontier: Fixed underlinking.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/bloodfrontier')
-rw-r--r-- | games/bloodfrontier/bloodfrontier.SlackBuild | 8 |
1 files changed, 7 insertions, 1 deletions
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" \ |