1 # Description: Script Creation Utility for Maniac Mansion Virtual Machine
2 # URL: http://www.scummvm.org/
3 # Packager: Matt Housh jaeger at crux dot nu
4 # Maintainer: Thomas Penteker tek at serverop dot de
5 # Packager: Matt Housh jaeger at crux dot nu
6 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
7 # Depends on: zlib libsdl
12 source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
17 export DEFAULT_LIBS="-L$CLFS/usr/lib"
18 export DEFAULT_CFLAGS="-I$CLFS/usr/include"
19 export SDL_LIBS="$DEFAULT_LIBS -lSDL -lpthread"
20 export SDL_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
21 export ZLIB_LIBS="$DEFAULT_LIBS"
22 export ZLIB_CFLAGS="$DEFAULT_CFLAGS"
24 ./configure --host=$CTARGET \
27 --with-sdl-prefix=$CLFS/usr \
32 sed -i ports.mk -e 's|$(INSTALL) -c -s|$(INSTALL)|'
34 -e "s|RANLIB := .*|RANLIB := $RANLIB|" \
35 -e "s|STRIP := .*|STRIP := $STRIP|" \
36 -e "s|AR := .*|AR := $AR cru|" \
37 -e "s|AS := .*|AS := $AS|"
40 make DESTDIR=$PKG install
41 rm -rf $PKG/usr/share/doc