# Description: classic 2D jump'n run sidescroller game # URL: http://supertux.lethargik.org # Maintainer: Victor Martinez, pitillo at ono dot com # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu # Depends on: libsdl sdl_mixer name=supertux version=0.1.3 release=1 source=(http://download.berlios.de/supertux/$name-$version.tar.bz2) build() { cd $name-$version ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ --disable-sdltest \ --with-sdl-prefix=$CLFS/usr \ --disable-opengl find . -type f -name Makefile -exec \ sed -i {} \ -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \ -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \ -e "s|-I/usr|-I$CLFS/usr|" \ -e "s|-L/usr|-L$CLFS/usr|" \; sed "s|void Menu::get_controlfield_key_into_input(MenuItem \*item)|void get_controlfield_key_into_input(MenuItem \*item);|" -i src/menu.h make make DESTDIR=$PKG install }