| 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 | |
| 7 | name=supertux |
| 8 | version=0.1.3 |
| 9 | release=1 |
| 10 | source=(http://download.berlios.de/supertux/$name-$version.tar.bz2) |
| 11 | |
| 12 | build() { |
| 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 | } |