diff options
author | B. Watson <yalhcru@gmail.com> | 2015-11-26 04:12:18 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-11-28 07:26:17 +0700 |
commit | 75995e13c9415d3579091ebe66968b6ac62ea74f (patch) | |
tree | 1a621214577a86fafc58b00277fd3d803b86010c /games/ufoai/ufoai.SlackBuild | |
parent | 18f50f202e9ef211b268638336629ba3504b37a9 (diff) |
games/ufoai: Fix compile issue.
Diffstat (limited to 'games/ufoai/ufoai.SlackBuild')
-rw-r--r-- | games/ufoai/ufoai.SlackBuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/games/ufoai/ufoai.SlackBuild b/games/ufoai/ufoai.SlackBuild index 395573bd04e1d..91fa4efc5a153 100644 --- a/games/ufoai/ufoai.SlackBuild +++ b/games/ufoai/ufoai.SlackBuild @@ -24,9 +24,14 @@ # - allow building the radiant editor. I have no idea if it's working # correctly, since I have no idea how to use it. +# 20151126 bkw: +# - fix build on systems that have SDL2 but not SDL2_ttf +# - add SDL2 environment variable +# - move binaries to /usr/games + PRGNAM=ufoai VERSION=${VERSION:-2.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -86,6 +91,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +[ "${SDL2:-no}" = "no" ] && EXTRAOPT="--disable-sdl2" + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -98,6 +105,7 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-ufo \ --enable-ufoded \ --enable-ufoslicer \ + $EXTRAOPT \ $radiant make @@ -108,7 +116,7 @@ make pk3 BINARIES= # Manual install: first the data... -mkdir -p $PKG/usr/share/games/$PRGNAM $PKG/usr/bin +mkdir -p $PKG/usr/share/games/$PRGNAM $PKG/usr/games cp -a base $PKG/usr/share/games/$PRGNAM/ # ...then the binaries @@ -119,7 +127,7 @@ if [ "$radiant" = "--enable-uforadiant" ]; then fi BINARIES="$BINARIES ufo ufoded ufo2map ufomodel memory ufoslicer" -install -s -m0755 $BINARIES $PKG/usr/bin/ +install -s -m0755 $BINARIES $PKG/usr/games/ # .desktop files, icons and man pages... mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps $PKG/usr/man/man6 @@ -128,11 +136,7 @@ install -m 0644 debian/*.xpm $PKG/usr/share/pixmaps/ install -m 0644 debian/*.6 $PKG/usr/man/man6/ gzip $PKG/usr/man/man6/*.6 -# Remove wrong execution path from .desktop files -# and get rid of uforadiant stuff if we don't have uforadiant -# [ 20140826 bkw: actually /usr/games is where they should go, but -# I won't change this just to be changing it ] -sed -i "s|/usr/games/||" $PKG/usr/share/applications/*.desktop +# Get rid of uforadiant stuff if we don't have uforadiant [ "$radiant" = "" ] && rm $PKG/usr/share/applications/uforadiant.desktop \ $PKG/usr/man/man6/uforadiant.6.gz $PKG/usr/share/pixmaps/uforadiant.xpm |