CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
9fbb0a9b7c18787b05e9964cbad726a840e79952
[attic/ports/games-cross.git] / bomberclone / Pkgfile
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
7
8 name=bomberclone
9 version=0.11.8
10 release=1
11 source=(http://downloads.sourceforge.net/sourceforge/bomberclone/bomberclone-$version.tar.bz2)
12
13 build() {
14 cd bomberclone-$version
15 sed -i configure.in -e '/^packagedatadir=/s|share/games/${PACKAGE}|share/${PACKAGE}|'
16
17 export DEFAULT_LIBS="-L$CLFS/usr/lib"
18 export DEFAULT_CFLAGS="-I$CLFS/usr/include"
19 export SDL_LIBS="$DEFAULT_LIBS -lSDL -lSDL_image -lpthread"
20 export SDL_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_LIBSDL_IMAGE"
21
22 ./configure --build=$CHOST \
23 --host=$CTARGET \
24 --prefix=/usr \
25 --with-sdl-prefix=$CLFS/usr \
26 --disable-sdltest \
27 --disable-debug
28
29 make CFLAGS="$CFLAGS $SDL_CFLAGS" LDFLAGS="$LDFLAGS $SDL_LIBS"
30 make DESTDIR=$PKG install
31 rm -r $PKG/usr/share/doc
32 }