# HG changeset patch
# User Christophe Lincoln <pankso@slitaz.org>
# Date 1393714298 -3600
# Node ID e68abb67e0b5f56967263ff89af2820bfa7f2c22
# Parent  45e76a6c05d72fbebdeccba878d6d9cca0509f62
arm: add some Xorg proto pkgs and prepare pkg-config/receipt

diff -r 45e76a6c05d7 -r e68abb67e0b5 libxslt/receipt
--- a/libxslt/receipt	Sat Mar 01 19:54:32 2014 +0000
+++ b/libxslt/receipt	Sat Mar 01 23:51:38 2014 +0100
@@ -15,13 +15,12 @@
 BUILD_DEPENDS="libgcrypt-dev libxml2-dev zlib-dev python-dev"
 
 case "$ARCH" in
-	arm) BUILD_DEPENDS="libxml2-dev" ;;
+	arm) BUILD_DEPENDS="libgcrypt-dev libxml2-dev" ;;
 esac
 
 # Rules to configure and make the package.
 compile_rules()
 {
-	cd $src
 	./configure $CONFIGURE_ARGS &&
 	make &&
 	make install 2>&1 | grep -v 'html/index.sgml'
diff -r 45e76a6c05d7 -r e68abb67e0b5 pkg-config/receipt
--- a/pkg-config/receipt	Sat Mar 01 19:54:32 2014 +0000
+++ b/pkg-config/receipt	Sat Mar 01 23:51:38 2014 +0100
@@ -1,7 +1,7 @@
 # SliTaz package receipt.
 
 PACKAGE="pkg-config"
-VERSION="0.25"
+VERSION="0.28"
 CATEGORY="development"
 SHORT_DESC="Free desktop packages manager."
 MAINTAINER="pankso@slitaz.org"
@@ -9,19 +9,34 @@
 TARBALL="$PACKAGE-$VERSION.tar.gz"
 WEB_SITE="http://pkgconfig.freedesktop.org/wiki/"
 WGET_URL="http://pkgconfig.freedesktop.org/releases/$TARBALL"
+#HOST_ARCH="i486 arm"
 
 DEPENDS="glibc-base"
 BUILD_DEPENDS="gcc libtool"
 
+# Handle cross compilation.
+case "$ARCH" in
+	arm) BUILD_DEPENDS="" ;;
+esac
+
 # Rules to configure and make the package.
 compile_rules()
 {
-	cd $src
 	patch -p1 < $stuff/autoconf-2.66.patch
-	./configure \
-		--program-prefix=$TOOLPREFIX \
-		--build=$HOST_SYSTEM --host=$HOST_SYSTEM 2>&1 | \
-		grep -v './libtool: No such file' &&
+	case "$ARCH" in
+		arm)
+			./configure \
+				--program-prefix=$TOOLPREFIX \
+				--build=i486-slitaz-linux \
+				--host=arm-slitaz-linux-gnueabi \
+				--cache-file=arm-linux.cache ;;
+		*)
+			./configure \
+				--program-prefix=$TOOLPREFIX \
+				--build=$HOST_SYSTEM \
+				--host=$HOST_SYSTEM 2>&1 | \
+				grep -v './libtool: No such file' ;;
+	esac &&
 	make && make install
 }
 
diff -r 45e76a6c05d7 -r e68abb67e0b5 xorg-bigreqsproto/receipt
--- a/xorg-bigreqsproto/receipt	Sat Mar 01 19:54:32 2014 +0000
+++ b/xorg-bigreqsproto/receipt	Sat Mar 01 23:51:38 2014 +0100
@@ -10,6 +10,7 @@
 SOURCE="bigreqsproto"
 TARBALL="$SOURCE-$VERSION.tar.bz2"
 WGET_URL="$XORG_MIRROR/proto/$TARBALL"
+HOST_ARCH="i486 arm"
 
 DEPENDS="xorg-util-macros pkg-config"
 BUILD_DEPENDS="xorg-util-macros"
diff -r 45e76a6c05d7 -r e68abb67e0b5 xorg-compositeproto/receipt
--- a/xorg-compositeproto/receipt	Sat Mar 01 19:54:32 2014 +0000
+++ b/xorg-compositeproto/receipt	Sat Mar 01 23:51:38 2014 +0100
@@ -10,6 +10,7 @@
 SOURCE="compositeproto"
 TARBALL="$SOURCE-$VERSION.tar.bz2"
 WGET_URL="$XORG_MIRROR/proto/$TARBALL"
+HOST_ARCH="i486 arm"
 
 DEPENDS="xorg-fixesproto pkg-config"
 BUILD_DEPENDS="xorg-util-macros"
diff -r 45e76a6c05d7 -r e68abb67e0b5 xorg-glproto/receipt
--- a/xorg-glproto/receipt	Sat Mar 01 19:54:32 2014 +0000
+++ b/xorg-glproto/receipt	Sat Mar 01 23:51:38 2014 +0100
@@ -10,6 +10,7 @@
 SOURCE="glproto"
 TARBALL="$SOURCE-$VERSION.tar.bz2"
 WGET_URL="$XORG_MIRROR/proto/$TARBALL"
+HOST_ARCH="i486 arm"
 
 DEPENDS="xorg-xproto mesa-dev pkg-config"
 BUILD_DEPENDS="xorg-util-macros"
diff -r 45e76a6c05d7 -r e68abb67e0b5 xorg-randrproto/receipt
--- a/xorg-randrproto/receipt	Sat Mar 01 19:54:32 2014 +0000
+++ b/xorg-randrproto/receipt	Sat Mar 01 23:51:38 2014 +0100
@@ -10,6 +10,7 @@
 SOURCE="randrproto"
 TARBALL="$SOURCE-$VERSION.tar.bz2"
 WGET_URL="$XORG_MIRROR/proto/$TARBALL"
+HOST_ARCH="i486 arm"
 
 DEPENDS="xorg-renderproto pkg-config"
 BUILD_DEPENDS="xorg-util-macros"
diff -r 45e76a6c05d7 -r e68abb67e0b5 xorg-renderproto/receipt
--- a/xorg-renderproto/receipt	Sat Mar 01 19:54:32 2014 +0000
+++ b/xorg-renderproto/receipt	Sat Mar 01 23:51:38 2014 +0100
@@ -10,6 +10,7 @@
 SOURCE="renderproto"
 TARBALL="$SOURCE-$VERSION.tar.bz2"
 WGET_URL="$XORG_MIRROR/proto/$TARBALL"
+HOST_ARCH="i486 arm"
 
 DEPENDS="xorg-xproto pkg-config"
 BUILD_DEPENDS="xorg-util-macros"
diff -r 45e76a6c05d7 -r e68abb67e0b5 xorg-videoproto/receipt
--- a/xorg-videoproto/receipt	Sat Mar 01 19:54:32 2014 +0000
+++ b/xorg-videoproto/receipt	Sat Mar 01 23:51:38 2014 +0100
@@ -10,6 +10,7 @@
 SOURCE="videoproto"
 TARBALL="$SOURCE-$VERSION.tar.bz2"
 WGET_URL="$XORG_MIRROR/proto/$TARBALL"
+HOST_ARCH="i486 arm"
 
 DEPENDS="xorg-libX11-dev xorg-xproto pkg-config"
 BUILD_DEPENDS="xorg-util-macros"