CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
bomberclone: added support for 320x240 resolutions in the menu
[attic/ports/games-cross.git] / bomberclone / Pkgfile
CommitLineData
cb26876d
JB
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
8name=bomberclone
9version=0.11.8
fc1b573f
JB
10release=2
11source=(http://downloads.sourceforge.net/sourceforge/bomberclone/bomberclone-$version.tar.bz2 \
12 $name-$version.res320x240.patch)
cb26876d
JB
13
14build() {
15 cd bomberclone-$version
16 sed -i configure.in -e '/^packagedatadir=/s|share/games/${PACKAGE}|share/${PACKAGE}|'
fc1b573f 17 patch -p1 -i $SRC/$name-$version.res320x240.patch
cb26876d
JB
18
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"
23
24 ./configure --build=$CHOST \
25 --host=$CTARGET \
26 --prefix=/usr \
27 --with-sdl-prefix=$CLFS/usr \
28 --disable-sdltest \
29 --disable-debug
30
31 make CFLAGS="$CFLAGS $SDL_CFLAGS" LDFLAGS="$LDFLAGS $SDL_LIBS"
32 make DESTDIR=$PKG install
33 rm -r $PKG/usr/share/doc
34}