Commit | Line | Data |
---|---|---|
38329b49 JB |
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 | |
7c849019 | 5 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
38329b49 JB |
6 | # Depends on: zlib libsdl |
7 | ||
8 | name=reminiscence | |
9 | version=0.1.9 | |
dc11a0cb | 10 | release=4 |
acbc5679 | 11 | source=(http://cyxdown.free.fr/$name/REminiscence-$version.tar.bz2 \ |
dc11a0cb JB |
12 | $name-$version.nosound.patch \ |
13 | $name-$version.lowres.patch) | |
38329b49 JB |
14 | |
15 | build() { | |
16 | cd REminiscence-$version | |
17 | ||
acbc5679 | 18 | patch -p1 -i $SRC/$name-$version.nosound.patch |
dc11a0cb JB |
19 | patch -p1 -i $SRC/$name-$version.lowres.patch |
20 | ||
aae3d2e7 JB |
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;|' | |
38329b49 JB |
24 | |
25 | make \ | |
acbc5679 | 26 | DEFINES="-DBYPASS_PROTECTION -DNO_SDL_MIXER" \ |
38329b49 JB |
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 | } |