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 | |
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 | |
aae3d2e7 | 10 | release=3 |
acbc5679 JB |
11 | source=(http://cyxdown.free.fr/$name/REminiscence-$version.tar.bz2 \ |
12 | $name-$version.nosound.patch) | |
38329b49 JB |
13 | |
14 | build() { | |
15 | cd REminiscence-$version | |
16 | ||
acbc5679 | 17 | patch -p1 -i $SRC/$name-$version.nosound.patch |
aae3d2e7 JB |
18 | sed -i Makefile -e "s|CXXFLAGS:=|CXXFLAGS:= $CXXFLAGS|" |
19 | # fix default screen scaler and resolution | |
20 | sed -i systemstub_sdl.cpp -e 's|_scaler = 2;|_scaler = 0;|' | |
38329b49 JB |
21 | |
22 | make \ | |
acbc5679 | 23 | DEFINES="-DBYPASS_PROTECTION -DNO_SDL_MIXER" \ |
38329b49 JB |
24 | CXX="$CXX" \ |
25 | SDL_LIBS="-L$CLFS/usr/lib -lSDL -lpthread" \ | |
26 | SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" \ | |
27 | ||
28 | install -d $PKG/usr/{bin,share/$name/data} | |
29 | install -D -m 0755 rs $PKG/usr/share/$name/rs | |
30 | ||
31 | cat > $PKG/usr/bin/$name << __EOF__ | |
32 | #!/bin/sh | |
33 | ||
34 | cd /usr/share/$name | |
35 | ./rs --datapath=/usr/share/$name/data \$@ | |
36 | cd - >/dev/null | |
37 | ||
38 | # End of file | |
39 | __EOF__ | |
40 | chmod +x $PKG/usr/bin/$name | |
41 | } |