CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
npush: Initial import (verified compilation).
[attic/ports/games-cross.git] / scummvm / Pkgfile
CommitLineData
e97b9b0d
JB
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
8
9name=scummvm
10version=1.0.0
290f9c8f 11release=2
e97b9b0d
JB
12source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
13
14build() {
15 cd $name-$version
16
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"
23
e97b9b0d
JB
24 ./configure --host=$CTARGET \
25 --prefix=/usr \
26 --mandir=/usr/man \
27 --with-sdl-prefix=$CLFS/usr \
28 --enable-zlib \
29 --enable-sci \
30 --enable-sci32
31
290f9c8f
JB
32 sed -i ports.mk -e 's|$(INSTALL) -c -s|$(INSTALL)|'
33 sed -i config.mk \
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|"
38
e97b9b0d
JB
39 make
40 make DESTDIR=$PKG install
41 rm -rf $PKG/usr/share/doc
42}