# Description: a challenging 2D motocross platform game, where physics play an all important role in the gameplay # URL: http://xmoto.tuxfamily.org # Maintainer: Jose V Beneyto, sepen at crux dot nu # Packager: sten, nick dot steeves at shaw dot ca # Depends on: sdl_mixer sdl_net sdl_ttf name=xmoto version=0.5.2 release=1 source=(http://download.tuxfamily.org/$name/$name/$version/$name-$version-src.tar.gz) build() { cd $name-$version echo "ac_cv_lib_GLU_gluBuild2DMipmaps=yes" > config.cache sed 's|-lGLU||g' -i configure export SDL_CONFIG="$CLFS/usr/bin/sdl-config" export SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" export SDL_LDLIBS="-L$CLFS/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_net" ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ --with-x \ --with-renderer-openGl=0 \ --with-renderer-sdlGfx=1 \ --disable-sdltest \ --disable-debug \ --disable-nls \ --cache-file=config.cache make make DESTDIR=$PKG install rm -rf $PKG/usr/share/{doc,locale} }