wok diff pkg-config/receipt @ rev 15991

Up: prosody (0.9.3)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 02 14:10:27 2014 +0100 (2014-03-02)
parents b034cb9d7f7c
children d118cd6b4ebf
line diff
     1.1 --- a/pkg-config/receipt	Thu Sep 26 17:57:02 2013 +0000
     1.2 +++ b/pkg-config/receipt	Sun Mar 02 14:10:27 2014 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="pkg-config"
     1.7 -VERSION="0.25"
     1.8 +VERSION="0.28"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Free desktop packages manager."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -9,19 +9,34 @@
    1.13  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14  WEB_SITE="http://pkgconfig.freedesktop.org/wiki/"
    1.15  WGET_URL="http://pkgconfig.freedesktop.org/releases/$TARBALL"
    1.16 +#HOST_ARCH="i486 arm"
    1.17  
    1.18  DEPENDS="glibc-base"
    1.19  BUILD_DEPENDS="gcc libtool"
    1.20  
    1.21 +# Handle cross compilation.
    1.22 +case "$ARCH" in
    1.23 +	arm) BUILD_DEPENDS="" ;;
    1.24 +esac
    1.25 +
    1.26  # Rules to configure and make the package.
    1.27  compile_rules()
    1.28  {
    1.29 -	cd $src
    1.30  	patch -p1 < $stuff/autoconf-2.66.patch
    1.31 -	./configure \
    1.32 -		--program-prefix=$TOOLPREFIX \
    1.33 -		--build=$HOST_SYSTEM --host=$HOST_SYSTEM 2>&1 | \
    1.34 -		grep -v './libtool: No such file' &&
    1.35 +	case "$ARCH" in
    1.36 +		arm)
    1.37 +			./configure \
    1.38 +				--program-prefix=$TOOLPREFIX \
    1.39 +				--build=i486-slitaz-linux \
    1.40 +				--host=arm-slitaz-linux-gnueabi \
    1.41 +				--cache-file=arm-linux.cache ;;
    1.42 +		*)
    1.43 +			./configure \
    1.44 +				--program-prefix=$TOOLPREFIX \
    1.45 +				--build=$HOST_SYSTEM \
    1.46 +				--host=$HOST_SYSTEM 2>&1 | \
    1.47 +				grep -v './libtool: No such file' ;;
    1.48 +	esac &&
    1.49  	make && make install
    1.50  }
    1.51