summaryrefslogtreecommitdiff
path: root/games/xmoto/xmoto.SlackBuild
diff options
context:
space:
mode:
authorAlex Word <alex_word86@yahoo.com>2012-08-10 00:13:06 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-08-10 00:13:06 -0500
commit93c2913f073033641d769f058745b59b21940301 (patch)
tree5b6a112b009c084672a96a1b4419200445e62ca4 /games/xmoto/xmoto.SlackBuild
parenta690c103d6b849b95156f4017684f6e6cb05f522 (diff)
downloadslackbuilds-93c2913f073033641d769f058745b59b21940301.tar.gz
games/xmoto: Updated for version 0.5.10.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/xmoto/xmoto.SlackBuild')
-rw-r--r--games/xmoto/xmoto.SlackBuild25
1 files changed, 15 insertions, 10 deletions
diff --git a/games/xmoto/xmoto.SlackBuild b/games/xmoto/xmoto.SlackBuild
index fa923d80c5..9ab68e4103 100644
--- a/games/xmoto/xmoto.SlackBuild
+++ b/games/xmoto/xmoto.SlackBuild
@@ -4,7 +4,7 @@
# Maintained by Alex Word <alex_word86@yahoo.com>
PRGNAM=xmoto
-VERSION=0.5.8
+VERSION=${VERSION:-0.5.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -45,11 +45,14 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+patch -p1 < $CWD/gcc-4.7.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-LIBS="-ldl" \
+LDFLAGS="-ldl" \
./configure \
--prefix=/usr \
+ --bindir=/usr/games \
--localstatedir=/var \
--mandir=/usr/man \
--localedir=/usr/share/locale \
@@ -57,11 +60,7 @@ LIBS="-ldl" \
--with-localesdir=/usr/share/locale \
--disable-dependency-tracking \
--enable-threads=posix \
- --with-internal-bz2=0 \
--with-internal-xdg=1 \
- --with-renderer-sdlGfx=0 \
- --with-renderer-openGl=1 \
- --with-x \
--with-asian-ttf-file="/usr/share/fonts/TTF/wqy-zenhei.ttc" \
--build=$ARCH-slackware-linux
@@ -72,14 +71,20 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/share/{pixmaps,applications}
-install -m 0644 extra/$PRGNAM.xpm $PKG/usr/share/pixmaps/
-install -m 0644 extra/$PRGNAM.desktop $PKG/usr/share/applications/
+install -m 0644 extra/$PRGNAM.xpm $PKG/usr/share/pixmaps
+install -m 0644 extra/$PRGNAM.desktop $PKG/usr/share/applications
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
-gzip -9 $PKG/usr/man/man?/*.?
+# Don't include fonts that are already shipped with Slackware.
+for i in $PKG/usr/share/$PRGNAM/Textures/Fonts/*.ttf; do
+ rm -f $i
+ ln -s $(find /usr/share/fonts -name $(basename $i)) $i
+done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING INSTALL NEWS README TODO ChangeLog \
+ AUTHORS COPYING NEWS README TODO ChangeLog \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild