mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-01 06:32:51 +02:00
games/xmoto: Updated for version 0.5.2
This commit is contained in:
parent
2e80d85fb3
commit
1242e6c888
6 changed files with 56 additions and 14 deletions
|
@ -2,4 +2,4 @@ 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
|
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.
|
you want to have a chance finishing the more difficult of the challenges.
|
||||||
|
|
||||||
Requires lua and ode.
|
This requires lua and ode.
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
if [ -x /usr/bin/update-desktop-database ]; then
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
35
games/xmoto/patches/xmoto-amd64_gcc441.diff
Normal file
35
games/xmoto/patches/xmoto-amd64_gcc441.diff
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
http://bugs.gentoo.org/284464
|
||||||
|
|
||||||
|
--- src/DBuffer.h.org 2009-09-10 11:58:28.000000000 +0200
|
||||||
|
+++ src/DBuffer.h 2009-09-10 12:07:30.000000000 +0200
|
||||||
|
@@ -69,6 +69,8 @@
|
||||||
|
void operator >>(unsigned char &c);
|
||||||
|
void operator <<(unsigned int n);
|
||||||
|
void operator >>(unsigned int &n);
|
||||||
|
+ void operator <<(unsigned long n);
|
||||||
|
+ void operator >>(unsigned long &n);
|
||||||
|
void operator <<(float n);
|
||||||
|
void operator >>(float &n);
|
||||||
|
void operator <<(std::string s);
|
||||||
|
|
||||||
|
--- src/DBuffer.cpp.org 2009-09-10 11:58:38.000000000 +0200
|
||||||
|
+++ src/DBuffer.cpp 2009-09-10 12:08:18.000000000 +0200
|
||||||
|
@@ -210,6 +210,18 @@
|
||||||
|
n = (unsigned int) sn;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ void DBuffer::operator <<(unsigned long n) {
|
||||||
|
+ int sn;
|
||||||
|
+ sn = (int) (n);
|
||||||
|
+ *this << sn;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ void DBuffer::operator >>(unsigned long &n) {
|
||||||
|
+ int sn;
|
||||||
|
+ *this >> sn;
|
||||||
|
+ n = (unsigned long) sn;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
void DBuffer::operator <<(float n) {
|
||||||
|
writeBuf_LE((char *)&n, sizeof(float));
|
||||||
|
}
|
|
@ -12,7 +12,7 @@ xmoto: X-Moto is a challenging 2D motocross platform game, where physics
|
||||||
xmoto: playan all important role in the gameplay. You need to control your
|
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: bike to its limit, if you want to have a chance finishing the more
|
||||||
xmoto: difficult of the challenges.
|
xmoto: difficult of the challenges.
|
||||||
xmoto:
|
xmoto:
|
||||||
xmoto: Homepage: http://xmoto.tuxfamily.org/
|
xmoto: Homepage: http://xmoto.tuxfamily.org/
|
||||||
xmoto:
|
xmoto:
|
||||||
xmoto:
|
xmoto:
|
||||||
|
|
|
@ -10,10 +10,8 @@
|
||||||
# Modified by the SlackBuilds.org project
|
# Modified by the SlackBuilds.org project
|
||||||
# Updated by Alex Word <alex_word86@yahoo.com>
|
# Updated by Alex Word <alex_word86@yahoo.com>
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
PRGNAM=xmoto
|
PRGNAM=xmoto
|
||||||
VERSION=0.5.1
|
VERSION=0.5.2
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
@ -25,12 +23,17 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG $TMP/$PRGNAM-$VERSION
|
rm -rf $PKG $TMP/$PRGNAM-$VERSION
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
|
@ -41,11 +44,13 @@ chmod -R u+w,go+r-w,a-s .
|
||||||
|
|
||||||
patch -p1 < $CWD/patches/sqlite3.diff
|
patch -p1 < $CWD/patches/sqlite3.diff
|
||||||
patch -p1 < $CWD/patches/localedir.diff
|
patch -p1 < $CWD/patches/localedir.diff
|
||||||
|
patch -p0 < $CWD/patches/xmoto-amd64_gcc441.diff
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--localedir=/usr/share/locale \
|
--localedir=/usr/share/locale \
|
||||||
|
@ -64,13 +69,14 @@ make install-strip DESTDIR=$PKG
|
||||||
|
|
||||||
mkdir -p $PKG/usr/share/{pixmaps,applications}
|
mkdir -p $PKG/usr/share/{pixmaps,applications}
|
||||||
install -m 0644 extra/$PRGNAM.xpm $PKG/usr/share/pixmaps/
|
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.desktop $PKG/usr/share/applications/
|
||||||
|
|
||||||
gzip -9 $PKG/usr/man/man?/*.?
|
gzip -9 $PKG/usr/man/man?/*.?
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a ABOUT-NLS AUTHORS COPYING INSTALL NEWS README TODO ChangeLog \
|
cp -a \
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
ABOUT-NLS AUTHORS COPYING INSTALL NEWS README TODO ChangeLog \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
@ -78,4 +84,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
PRGNAM="xmoto"
|
PRGNAM="xmoto"
|
||||||
VERSION="0.5.1"
|
VERSION="0.5.2"
|
||||||
HOMEPAGE="http://xmoto.tuxfamily.org/"
|
HOMEPAGE="http://xmoto.tuxfamily.org/"
|
||||||
DOWNLOAD="http://download.tuxfamily.org/xmoto/xmoto/0.5.1/xmoto-0.5.1-src.tar.gz"
|
DOWNLOAD="http://download.tuxfamily.org/xmoto/xmoto/0.5.2/xmoto-0.5.2-src.tar.gz"
|
||||||
MD5SUM="10cb822ec8c2c7e9466806633e69be1f"
|
MD5SUM="1e3678ebceca21d61844efb53c140227"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Alex Word"
|
MAINTAINER="Alex Word"
|
||||||
EMAIL="alex_word86@yahoo.com"
|
EMAIL="alex_word86@yahoo.com"
|
||||||
APPROVED="dsomero"
|
APPROVED="rworkman"
|
||||||
|
|
Loading…
Reference in a new issue