1 # Description: SDL-based DOS emulator for classic games
2 # URL: http://dosbox.sourceforge.net
3 # Maintainer: Tilman Sauerbeck, tilman at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
10 source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
15 export DEFAULT_LIBS="-L$CLFS/usr/lib"
16 export DEFAULT_CFLAGS="-I$CLFS/usr/include"
17 export SDL_LIBS="$DEFAULT_LIBS -lSDL -lSDL_image -lpthread"
18 export SDL_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_LIBSDL_IMAGE"
21 -e 's|SDL_VERSION=.*|SDL_VERSION=1.2.14|g' \
22 -e "s|SDL_LIBS=.*|SDL_LIBS=\"$SDL_LIBS\"|" \
23 -e "s|SDL_CFLAGS=.*|SDL_CFLAGS=\"$SDL_CFLAGS\"|"
24 ./configure --build=$CHOST \
28 --with-sdl-prefix=$CLFS/usr \
31 --disable-dynamic-x86 \
36 make DESTDIR=$PKG install