CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
npush: Initial import (verified compilation).
[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=2
11 source=(http://downloads.sourceforge.net/sourceforge/bomberclone/bomberclone-$version.tar.bz2 \
12 $name-$version.res320x240.patch)
13
14 build() {
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
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 }