1 # Description: The all in one NES/Famicon Emulator
2 # URL: http://fceux.com/
3 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
4 # Depends on: zlib libsdl
9 source=(http://dl.sourceforge.net/project/fceultra/Source%20Code/$version%20src/$name-$version.src.tar.bz2)
16 -e "s|\$(shell sdl-config --cflags)|-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT|" \
17 -e "s|\$(shell sdl-config --libs)|-L$CLFS/usr/lib -lSDL -lpthread|" \
18 -e "s|CC=gcc|CC=$CC|" \
19 -e "s|CPP=gcc|CPP=$CC|"
21 make SDLVERSION=$(pkginfo -r $CLFS -i | grep libsdl | awk '{print $2}')
23 install -d $PKG/usr/{bin,share/$name,man/man6}
24 install -m 0755 $name $PKG/usr/share/$name
25 install -m 0644 data.zip $PKG/usr/share/$name
26 install -m 0644 $name.6.gz $PKG/usr/man/man6
28 cat > $PKG/usr/bin/$name << __EOF__
35 chmod +x $PKG/usr/bin/$name