CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
reminiscence: initial import (verified compilation)
[attic/ports/games-cross.git] / reminiscence / Pkgfile
1 # Description: REminiscence is a rewrite of the engine used in the game Flashback from Delphine Software.
2 # URL: http://cyxdown.free.fr/reminiscence/
3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
4 # Packager: 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: zlib libsdl
7
8 name=reminiscence
9 version=0.1.9
10 release=1
11 source=(http://cyxdown.free.fr/$name/REminiscence-$version.tar.bz2)
12
13 build() {
14 cd REminiscence-$version
15
16 sed -e "s|CXXFLAGS:=|CXXFLAGS:= $CXXFLAGS|" -i Makefile
17
18 make \
19 CXX="$CXX" \
20 SDL_LIBS="-L$CLFS/usr/lib -lSDL -lpthread" \
21 SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" \
22
23 install -d $PKG/usr/{bin,share/$name/data}
24 install -D -m 0755 rs $PKG/usr/share/$name/rs
25
26 cat > $PKG/usr/bin/$name << __EOF__
27 #!/bin/sh
28
29 cd /usr/share/$name
30 ./rs --datapath=/usr/share/$name/data \$@
31 cd - >/dev/null
32
33 # End of file
34 __EOF__
35 chmod +x $PKG/usr/bin/$name
36 }