CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Initial commit. Added README file.
[attic/ports/games-cross.git] / Pkgfile
... / ...
CommitLineData
1# Description: classic 2D jump'n run sidescroller game
2# URL: http://supertux.lethargik.org
3# Maintainer: Victor Martinez, pitillo at ono dot com
4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5# Depends on: libsdl sdl_mixer
6
7name=supertux
8version=0.1.3
9release=1
10source=(http://download.berlios.de/supertux/$name-$version.tar.bz2)
11
12build() {
13 cd $name-$version
14
15 ./configure --build=$CHOST \
16 --host=$CTARGET \
17 --prefix=/usr \
18 --disable-sdltest \
19 --with-sdl-prefix=$CLFS/usr \
20 --disable-opengl
21
22 find . -type f -name Makefile -exec \
23 sed -i {} \
24 -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \
25 -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \
26 -e "s|-I/usr|-I$CLFS/usr|" \
27 -e "s|-L/usr|-L$CLFS/usr|" \;
28 sed "s|void Menu::get_controlfield_key_into_input(MenuItem \*item)|void get_controlfield_key_into_input(MenuItem \*item);|" -i src/menu.h
29
30 make
31 make DESTDIR=$PKG install
32}