wok rev 10873

enigma: Doesn't cross compile. Clean up. Save 800kb in package size.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jun 19 12:05:02 2011 +0000 (2011-06-19)
parents 3be5dad68599
children d3ee6c7c1320
files enigma/receipt
line diff
     1.1 --- a/enigma/receipt	Sun Jun 19 12:01:41 2011 +0000
     1.2 +++ b/enigma/receipt	Sun Jun 19 12:05:02 2011 +0000
     1.3 @@ -9,25 +9,27 @@
     1.4  TARBALL="$PACKAGE-$VERSION-$REVISION.tar.gz"
     1.5  WEB_SITE="http://www.nongnu.org/enigma/"
     1.6  WGET_URL="http://download.berlios.de/enigma-game/$TARBALL"
     1.7 +
     1.8 +DEPENDS="libsdl libsdl-ttf libsdl-mixer libsdl-image xerces-c"
     1.9  BUILD_DEPENDS="gettext libsdl-ttf-dev libsdl-mixer-dev libsdl-image-dev libsdl-dev xerces-c-dev"
    1.10 -DEPENDS="libsdl libsdl-ttf libsdl-mixer libsdl-image xerces-c"
    1.11  
    1.12  # Rules to configure and make the package.
    1.13  compile_rules()
    1.14  {
    1.15  	cd $src
    1.16 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.17 -	--mandir=/usr/share/man $CONFIGURE_ARGS \
    1.18 -	--enable-optimize &&
    1.19 +	./configure \
    1.20 +		--build=$HOST_SYSTEM \
    1.21 +		--host=$HOST_SYSTEM \
    1.22 +		--enable-optimize &&
    1.23  	make &&
    1.24 -	make DESTDIR=$PWD/_pkg install
    1.25 +	make DESTDIR=$DESTDIR install
    1.26  }
    1.27  
    1.28  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.29  genpkg_rules()
    1.30  {
    1.31 -	mkdir -p $fs/usr
    1.32 +	mkdir -p $fs/usr/share
    1.33  	cp -a $_pkg/usr/bin $fs/usr
    1.34  	cp -a $_pkg/usr/lib $fs/usr
    1.35 -	cp -a $_pkg/usr/share $fs/usr
    1.36 +	cp -a $_pkg/usr/share/enigma $fs/usr/share
    1.37  }