CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
opentyrian: initial import (verified compilation)
[attic/ports/games-cross.git] / opentyrian / Pkgfile
1 # Description: open-source port of the DOS shoot-em-up Tyrian
2 # URL: http://code.google.com/p/opentyrian
3 # Packager: Jose V Beneyto, sepen at crux dot nu
4 # Maintainer: Jose V Beneyto, sepen at crux dot nu
5 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
6 # Depends on: sdl_net
7
8 name=opentyrian
9 version=2.1
10 release=1
11 source=(http://mikeux.dyndns.org/crux/files/$name-$version.tar.bz2 \
12 http://camanis.net/tyrian/tyrian21.zip)
13
14 build() {
15 cd $name-$version
16
17 sed 's|:=|=|g' -i Makefile
18 make \
19 CC="$CC" CFLAGS="$CFLAGS -fgnu89-inline" STRIP="$STRIP" \
20 SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" \
21 SDL_LDLIBS="-L$CLFS/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_net"
22
23 install -d $PKG/usr/{bin,share/$name/data}
24 install -D -m 0755 $name $PKG/usr/share/$name/$name
25
26 rm -f $SRC/tyrian21/*.exe
27 mv $SRC/tyrian21/* $PKG/usr/share/$name/data/
28
29 cat > $PKG/usr/bin/$name << __EOF__
30 #!/bin/sh
31
32 cd /usr/share/$name
33 ./$name \$@
34 cd - >/dev/null
35
36 # End of file
37 __EOF__
38 chmod +x $PKG/usr/bin/$name
39 }