| 1 | # Description: a challenging 2D motocross platform game, where physics play an all important role in the gameplay |
| 2 | # URL: http://xmoto.tuxfamily.org |
| 3 | # Maintainer: Jose V Beneyto, sepen at crux dot nu |
| 4 | # Packager: sten, nick dot steeves at shaw dot ca |
| 5 | # Depends on: sdl_mixer sdl_net sdl_ttf |
| 6 | |
| 7 | name=xmoto |
| 8 | version=0.5.2 |
| 9 | release=1 |
| 10 | source=(http://download.tuxfamily.org/$name/$name/$version/$name-$version-src.tar.gz) |
| 11 | |
| 12 | build() { |
| 13 | cd $name-$version |
| 14 | |
| 15 | echo "ac_cv_lib_GLU_gluBuild2DMipmaps=yes" > config.cache |
| 16 | sed 's|-lGLU||g' -i configure |
| 17 | |
| 18 | export SDL_CONFIG="$CLFS/usr/bin/sdl-config" |
| 19 | export SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" |
| 20 | export SDL_LDLIBS="-L$CLFS/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_net" |
| 21 | |
| 22 | ./configure --build=$CHOST \ |
| 23 | --host=$CTARGET \ |
| 24 | --prefix=/usr \ |
| 25 | --with-x \ |
| 26 | --with-renderer-openGl=0 \ |
| 27 | --with-renderer-sdlGfx=1 \ |
| 28 | --disable-sdltest \ |
| 29 | --disable-debug \ |
| 30 | --disable-nls \ |
| 31 | --cache-file=config.cache |
| 32 | |
| 33 | make |
| 34 | make DESTDIR=$PKG install |
| 35 | rm -rf $PKG/usr/share/{doc,locale} |
| 36 | } |