CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
reminiscence: added optional patch for disable sdl_mixer when using -DNO_SDL_MIXER...
[attic/ports/games-cross.git] / fceux / Pkgfile
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
5
6 name=fceux
7 version=2.1.2
8 release=1
9 source=(http://dl.sourceforge.net/project/fceultra/Source%20Code/$version%20src/$name-$version.src.tar.bz2)
10
11 build() {
12 cd $name-$version
13 ls
14 exit
15 sed -i Makefile \
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|"
20
21 make SDLVERSION=$(pkginfo -r $CLFS -i | grep libsdl | awk '{print $2}')
22
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
27
28 cat > $PKG/usr/bin/$name << __EOF__
29 #!/bin/sh
30
31 cd /usr/share/$name
32 ./$name \$@
33 cd - >/dev/null
34 __EOF__
35 chmod +x $PKG/usr/bin/$name
36 }