CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
seabattle: Fixed url and description.
[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, devel at crux-arm dot nu
6 # Depends on: zlib libsdl
7
8 name=reminiscence
9 version=0.1.9
10 release=4
11 source=(http://cyxdown.free.fr/$name/REminiscence-$version.tar.bz2 \
12 $name-$version.nosound.patch \
13 $name-$version.lowres.patch)
14
15 build() {
16 cd REminiscence-$version
17
18 patch -p1 -i $SRC/$name-$version.nosound.patch
19 patch -p1 -i $SRC/$name-$version.lowres.patch
20
21 sed -i Makefile -e "s|CXXFLAGS:=|CXXFLAGS:= $CXXFLAGS|"
22 # fix default screen scaler and resolution
23 sed -i systemstub_sdl.cpp -e 's|_scaler = 2;|_scaler = 0;|'
24
25 make \
26 DEFINES="-DBYPASS_PROTECTION -DNO_SDL_MIXER" \
27 CXX="$CXX" \
28 SDL_LIBS="-L$CLFS/usr/lib -lSDL -lpthread" \
29 SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" \
30
31 install -d $PKG/usr/{bin,share/$name/data}
32 install -D -m 0755 rs $PKG/usr/share/$name/rs
33
34 cat > $PKG/usr/bin/$name << __EOF__
35 #!/bin/sh
36
37 cd /usr/share/$name
38 ./rs --datapath=/usr/share/$name/data \$@
39 cd - >/dev/null
40
41 # End of file
42 __EOF__
43 chmod +x $PKG/usr/bin/$name
44 }