name=scummvm
version=1.0.0
-release=1
+release=2
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2)
build() {
export ZLIB_LIBS="$DEFAULT_LIBS"
export ZLIB_CFLAGS="$DEFAULT_CFLAGS"
- sed -i ports.mk -e 's|$(INSTALL) -c -s|$(INSTALL)|'
./configure --host=$CTARGET \
--prefix=/usr \
--mandir=/usr/man \
--enable-sci \
--enable-sci32
+ sed -i ports.mk -e 's|$(INSTALL) -c -s|$(INSTALL)|'
+ sed -i config.mk \
+ -e "s|RANLIB := .*|RANLIB := $RANLIB|" \
+ -e "s|STRIP := .*|STRIP := $STRIP|" \
+ -e "s|AR := .*|AR := $AR cru|" \
+ -e "s|AS := .*|AS := $AS|"
+
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/doc