forked from ports/contrib
tuxracer: taken over maintainership
This commit is contained in:
parent
6ce1b63f9b
commit
4afa2b6410
@ -1,32 +1,45 @@
|
||||
# Description: OpenGL-based racing game featuring Tux
|
||||
# URL: http://tuxracer.sourceforge.net/
|
||||
# Maintainer: Mark Rosenstand, mark at borkware dot net
|
||||
# Depends on: mesa3d, sdl_mixer, tcl
|
||||
# Description: OpenGL-based racing game featuring Tux.
|
||||
# URL: http://tuxracer.sourceforge.net/
|
||||
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
|
||||
# Packager: Mark Rosenstand, mark at borkware dot net
|
||||
# Depends on: mesa3d sdl_mixer tcl xorg-libice xorg-libx11
|
||||
|
||||
name=tuxracer
|
||||
version=0.61
|
||||
release=1
|
||||
source=(http://dl.sourceforge.net/tuxracer/tuxracer-$version.tar.gz
|
||||
http://dl.sourceforge.net/tuxracer/tuxracer-data-$version.tar.gz
|
||||
tuxracer-0.61-gcc30-fixes.patch
|
||||
source=(http://dl.sourceforge.net/tuxracer/tuxracer{,-data}-$version.tar.gz \
|
||||
tuxracer-0.61-gcc30-fixes.patch \
|
||||
tuxracer-0.61-skip-glx.h-check.patch)
|
||||
|
||||
build() {
|
||||
cd tuxracer-$version
|
||||
patch -p1 -i ../tuxracer-0.61-gcc30-fixes.patch
|
||||
patch -p1 -i ../tuxracer-0.61-skip-glx.h-check.patch
|
||||
|
||||
local tcl_version=$(pkginfo -i |grep '^tcl ' |awk '{print $2}' |sed -e 's/.[0-9]*-[0-9]*$//')
|
||||
|
||||
export \
|
||||
CFLAGS="$CFLAGS -fno-strict-aliasing" \
|
||||
CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
|
||||
|
||||
patch -p1 -i $SRC/tuxracer-0.61-gcc30-fixes.patch
|
||||
patch -p1 -i $SRC/tuxracer-0.61-skip-glx.h-check.patch
|
||||
sed -i -e 's/-malign/-falign/g' configure.in
|
||||
|
||||
autoreconf -i
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--with-tcl-lib-name=tcl8.4 \
|
||||
--with-tcl-lib-name=tcl$tcl_version \
|
||||
--with-data-dir=/usr/share/tuxracer
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
cd ..
|
||||
rm tuxracer-data-$version/README
|
||||
chmod -Rv a+r tuxracer-data-$version
|
||||
mkdir -p $PKG/usr/share
|
||||
cp -r tuxracer-data-$version $PKG/usr/share/tuxracer
|
||||
find $PKG/usr/share/tuxracer -type d -exec chmod -v g-s {} \;
|
||||
install -d $PKG/usr/share
|
||||
cp -r $SRC/tuxracer-data-$version $PKG/usr/share/tuxracer
|
||||
|
||||
chmod -R a+r $PKG/usr/share/tuxracer
|
||||
find $PKG/usr/share/tuxracer -type d -print0 | xargs -0 chmod g-s
|
||||
|
||||
rm $PKG/usr/share/tuxracer/README
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user