summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author Alex Word <alex_word86@yahoo.com>2010-05-12 17:39:42 +0200
committer David Somero <xgizzmo@slackbuilds.org>2010-05-12 17:39:42 +0200
commit98cc6486f87251a68f3dfbc9a0a4486bc328a771 (patch)
treed1b9b5a2e1d224be4bbe95607b0add8bc0c9d0d9 /games
parente6c6e9aa4f5a6e1488881f4a300340faf104f132 (diff)
downloadslackbuilds-98cc6486f87251a68f3dfbc9a0a4486bc328a771.tar.gz
slackbuilds-98cc6486f87251a68f3dfbc9a0a4486bc328a771.tar.xz
games/xmoto: Updated for version 0.5.1
Diffstat (limited to 'games')
-rw-r--r--games/xmoto/README19
-rw-r--r--games/xmoto/config.dat11
-rw-r--r--games/xmoto/doinst.sh4
-rw-r--r--games/xmoto/patches/localedir.diff12
-rw-r--r--games/xmoto/patches/sqlite3.diff30
-rw-r--r--games/xmoto/slack-desc8
-rw-r--r--games/xmoto/xmoto.SlackBuild73
-rw-r--r--games/xmoto/xmoto.info12
8 files changed, 95 insertions, 74 deletions
diff --git a/games/xmoto/README b/games/xmoto/README
index 6848fc3940..030f7a5908 100644
--- a/games/xmoto/README
+++ b/games/xmoto/README
@@ -1,18 +1,5 @@
-X-Moto is a challenging 2D motocross platform game, where physics play an all
-important role in the gameplay. You need to control your bike to its limit, if
+X-Moto is a challenging 2D motocross platform game, where physics play an all
+important role in the gameplay. You need to control your bike to its limit, if
you want to have a chance finishing the more difficult of the challenges.
-IMPORTANT:
-X-Moto recently changed its hosting to tuxfamily.org. As a result, for X-Moto
-to connect to this new server, you have to update the file 'config.dat' located
-at ~/.xmoto/config.dat. You can open this file and replace all the occurences
-of xmoto.free.fr with xmoto.tuxfamily.org, or if you don't know how to do that,
-just replace the file config.dat with the one provided in the X-Moto SlackBuild
-tar.gz archive (you will lose your configuration, but not your highscores).
-Moreover, you should remove the file rooms.xml next to this one.
-This is only necessary if you want to enable X-Moto to be able to connect to
-the internet. (from http://xmoto.tuxfamily.org)
-
-Requirements:
- >=lua-5.1 (available @ SlackBuilds.org)
- >=ode-0.7 (available @ SlackBuilds.org)
+Requires lua and ode. \ No newline at end of file
diff --git a/games/xmoto/config.dat b/games/xmoto/config.dat
deleted file mode 100644
index 952b1e65da..0000000000
--- a/games/xmoto/config.dat
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<userconfig>
- <var name="WebHighscoresURL" value="http://xmoto.tuxfamily.org/highscores.xml"/>
- <var name="WebLevelsURL" value="http://xmoto.tuxfamily.org/levels.xml"/>
- <var name="WebThemesURL" value="http://xmoto.tuxfamily.org/themes.xml"/>
- <var name="WebThemesURLBase" value="http://xmoto.tuxfamily.org/sprites"/>
- <var name="WebRoomsURL" value="http://xmoto.tuxfamily.org/rooms.xml"/>
- <var name="WebHighscoreUploadURL" value="http://xmoto.tuxfamily.org/tools/UploadReplay.php"/>
-</userconfig>
-
diff --git a/games/xmoto/doinst.sh b/games/xmoto/doinst.sh
index 3412314ed0..301399ba37 100644
--- a/games/xmoto/doinst.sh
+++ b/games/xmoto/doinst.sh
@@ -1,5 +1,5 @@
-if [ -x usr/bin/update-desktop-database ]; then
- ./usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
diff --git a/games/xmoto/patches/localedir.diff b/games/xmoto/patches/localedir.diff
new file mode 100644
index 0000000000..238e1de4a5
--- /dev/null
+++ b/games/xmoto/patches/localedir.diff
@@ -0,0 +1,12 @@
+diff -Naur xmoto-0.5.0.orig/po/Makefile.in.in xmoto-0.5.0/po/Makefile.in.in
+--- xmoto-0.5.0.orig/po/Makefile.in.in 2008-11-23 09:32:28.000000000 +0000
++++ xmoto-0.5.0/po/Makefile.in.in 2009-03-30 20:44:01.000000000 +0000
+@@ -26,7 +26,7 @@
+ datarootdir = @datarootdir@
+ datadir = @datadir@
+ localedir = @localedir@
+-gettextsrcdir = $(datadir)/gettext/po
++gettextsrcdir = @localedir@/gettext/po
+
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
diff --git a/games/xmoto/patches/sqlite3.diff b/games/xmoto/patches/sqlite3.diff
new file mode 100644
index 0000000000..8d47a140f7
--- /dev/null
+++ b/games/xmoto/patches/sqlite3.diff
@@ -0,0 +1,30 @@
+diff -Naur xmoto-0.5.0.orig/configure xmoto-0.5.0/configure
+--- xmoto-0.5.0.orig/configure 2008-11-23 09:33:21.000000000 +0000
++++ xmoto-0.5.0/configure 2009-03-30 20:52:48.000000000 +0000
+@@ -5104,7 +5104,7 @@
+ cat >>confdefs.h <<_ACEOF
+ #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+ _ACEOF
+- SQLITE_LIBS=-lsqlite3
++ SQLITE_LIBS=`pkg-config --static --libs sqlite3`
+ else
+ { { echo "$as_me:$LINENO: error: \"sqlite3 required\"" >&5
+ echo "$as_me: error: \"sqlite3 required\"" >&2;}
+@@ -5120,7 +5120,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lsqlite3 $LIBS"
++LIBS="`pkg-config --static --libs sqlite3` $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -5174,7 +5174,7 @@
+ #define HAVE_LIBSQLITE3 1
+ _ACEOF
+
+- LIBS="-lsqlite3 $LIBS"
++ LIBS="`pkg-config --static --libs sqlite3` $LIBS"
+
+ else
+ { { echo "$as_me:$LINENO: error: \"Linking against sqlite3 failed.\"" >&5
diff --git a/games/xmoto/slack-desc b/games/xmoto/slack-desc
index 5dc37516a5..aec63ce524 100644
--- a/games/xmoto/slack-desc
+++ b/games/xmoto/slack-desc
@@ -13,7 +13,7 @@ xmoto: playan all important role in the gameplay. You need to control your
xmoto: bike to its limit, if you want to have a chance finishing the more
xmoto: difficult of the challenges.
xmoto:
-xmoto:
-xmoto:
-xmoto:
-xmoto:
+xmoto: Homepage: http://xmoto.tuxfamily.org/
+xmoto:
+xmoto:
+xmoto:
diff --git a/games/xmoto/xmoto.SlackBuild b/games/xmoto/xmoto.SlackBuild
index dfd310d666..114c921c36 100644
--- a/games/xmoto/xmoto.SlackBuild
+++ b/games/xmoto/xmoto.SlackBuild
@@ -8,71 +8,74 @@
## did not write. Thanks.
# Modified by the SlackBuilds.org project
+# Updated by Alex Word <alex_word86@yahoo.com>
set -e
-NAME=xmoto
-VERSION=0.2.4
+PRGNAM=xmoto
+VERSION=0.5.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=${PKG:-$TMP/package-$NAME}
+PKG=${PKG:-$TMP/package-$PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
-rm -rf $PKG $TMP/$NAME-$VERSION
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-tar zxvf $CWD/$NAME-$VERSION-src.tar.gz
-cd $NAME-$VERSION
-chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
+rm -rf $PKG $TMP/$PRGNAM-$VERSION
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+patch -p1 < $CWD/patches/sqlite3.diff
+patch -p1 < $CWD/patches/localedir.diff
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr \
- --exec-prefix=/usr \
- --bindir=/usr/games \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --libdir=/usr/lib/games \
- --datadir=/usr/share/games \
- --datarootdir=/usr \
- --docdir=/usr/doc/$NAME-$VERSION \
- --enable-threads=posix \
- --with-enable-www=1 \
- --with-enable-zoom=1
+ --prefix=/usr \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --localedir=/usr/share/locale \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --with-localesdir=/usr/share/locale \
+ --disable-dependency-tracking \
+ --enable-threads=posix \
+ --with-enable-zoom=1 \
+ --with-renderer-sdlGfx=0 \
+ --with-renderer-openGl=1 \
+ --with-x \
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/share/{pixmaps,applications}
-install -m 0644 extra/$NAME.xpm $PKG/usr/share/pixmaps/
-install -m 0644 extra/$NAME.desktop $PKG/usr/share/applications/
-
-# X-Moto doesn't like to honour the locale options that
-# the configure script says it does.
-mv $PKG/usr/share/games/locale $PKG/usr/share
+install -m 0644 extra/$PRGNAM.xpm $PKG/usr/share/pixmaps/
+install -m 0644 extra/$PRGNAM.desktop $PKG/usr/share/applications/
-# Man pages are already gzipped, but there's one small problem
-mv $PKG/usr/man/mang $PKG/usr/man/man6
+gzip -9 $PKG/usr/man/man?/*.?
-mkdir -p $PKG/usr/doc/$NAME-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ABOUT-NLS AUTHORS COPYING INSTALL NEWS README TODO ChangeLog \
- $PKG/usr/doc/$NAME-$VERSION
-cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n -p $OUTPUT/$NAME-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/games/xmoto/xmoto.info b/games/xmoto/xmoto.info
index caa2d38792..2a7ad48ab6 100644
--- a/games/xmoto/xmoto.info
+++ b/games/xmoto/xmoto.info
@@ -1,8 +1,8 @@
PRGNAM="xmoto"
-VERSION="0.2.4"
+VERSION="0.5.1"
HOMEPAGE="http://xmoto.tuxfamily.org/"
-DOWNLOAD="http://dl.sourceforge.net/xmoto/xmoto-0.2.4-src.tar.gz"
-MD5SUM="78f776695a664b855e3659df25cc6d82"
-MAINTAINER="hollywoodb"
-EMAIL="hollywoodb@fastmail.fm"
-APPROVED="rworkman"
+DOWNLOAD="http://download.tuxfamily.org/xmoto/xmoto/0.5.1/xmoto-0.5.1-src.tar.gz"
+MD5SUM="10cb822ec8c2c7e9466806633e69be1f"
+MAINTAINER="Alex Word"
+EMAIL="alex_word86@yahoo.com"
+APPROVED="dsomero"