CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
seabattle: moved from opt collection.
[attic/ports/games-cross.git] / dosbox / Pkgfile
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
5 # Depends on: libsdl
6
7 name=dosbox
8 version=0.73
9 release=1
10 source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$version
14
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"
19
20 sed -i configure \
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 \
25 --host=$CTARGET \
26 --prefix=/usr \
27 --mandir=/usr/man \
28 --with-sdl-prefix=$CLFS/usr \
29 --disable-sdltest \
30 --disable-alsatest \
31 --disable-dynamic-x86 \
32 --disable-fpu-x86 \
33 --disable-debug
34
35 make
36 make DESTDIR=$PKG install
37 rm -rf $PKG/usr/share
38
39 }