1 # Description: A clone of Atomic Bomberman (SDL/MultiPlayer/Network).
2 # URL: http://www.bomberclone.de/
3 # Maintainer: Danny Rawlins, monster dot romster at gmail dot com
4 # Packager: James Mills, prologic at shortcircuit dot net dot au
5 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
6 # Depends on: sdl_image
11 source=(http://downloads.sourceforge.net/sourceforge/bomberclone/bomberclone-$version.tar.bz2 \
12 $name-$version.res320x240.patch)
15 cd bomberclone-$version
16 sed -i configure.in -e '/^packagedatadir=/s|share/games/${PACKAGE}|share/${PACKAGE}|'
17 patch -p1 -i $SRC/$name-$version.res320x240.patch
19 export DEFAULT_LIBS="-L$CLFS/usr/lib"
20 export DEFAULT_CFLAGS="-I$CLFS/usr/include"
21 export SDL_LIBS="$DEFAULT_LIBS -lSDL -lSDL_image -lpthread"
22 export SDL_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_LIBSDL_IMAGE"
24 ./configure --build=$CHOST \
27 --with-sdl-prefix=$CLFS/usr \
31 make CFLAGS="$CFLAGS $SDL_CFLAGS" LDFLAGS="$LDFLAGS $SDL_LIBS"
32 make DESTDIR=$PKG install
33 rm -r $PKG/usr/share/doc