wok-6.x rev 16131

ARM: add gdk-pixbuf, fribidi, xorg-libXp, xorg-libXss
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 25 22:45:56 2014 +0100 (2014-03-25)
parents 0efad4f40bd9
children c8d763479cbc
files fribidi-dev/receipt fribidi/receipt gdk-pixbuf-dev/receipt gdk-pixbuf/receipt xorg-libXp-dev/receipt xorg-libXp/receipt xorg-libXss-dev/receipt xorg-libXss/receipt xorg-scrnsaverproto/receipt
line diff
     1.1 --- a/fribidi-dev/receipt	Tue Mar 25 22:34:47 2014 +0100
     1.2 +++ b/fribidi-dev/receipt	Tue Mar 25 22:45:56 2014 +0100
     1.3 @@ -8,6 +8,7 @@
     1.4  LICENSE="LGPL2.1"
     1.5  WANTED="fribidi"
     1.6  WEB_SITE="http://fribidi.freedesktop.org/wiki/"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  DEPENDS="fribidi pkg-config"
    1.10  
     2.1 --- a/fribidi/receipt	Tue Mar 25 22:34:47 2014 +0100
     2.2 +++ b/fribidi/receipt	Tue Mar 25 22:45:56 2014 +0100
     2.3 @@ -9,17 +9,15 @@
     2.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     2.5  WEB_SITE="http://fribidi.freedesktop.org/wiki/"
     2.6  WGET_URL="http://fribidi.org/download/$TARBALL"
     2.7 +HOST_ARCH="i486 arm"
     2.8  
     2.9  DEPENDS="glibc-base"
    2.10  
    2.11  # Rules to configure and make the package.
    2.12  compile_rules()
    2.13  {
    2.14 -	cd $src
    2.15 -	./configure --prefix=/usr --infodir=/usr/share/info \
    2.16 -	--mandir=/usr/share/man $CONFIGURE_ARGS
    2.17 -	make
    2.18 -	make DESTDIR=$DESTDIR install
    2.19 +	./configure $CONFIGURE_ARGS &&
    2.20 +	make && make install
    2.21  }
    2.22  
    2.23  # Rules to gen a SliTaz package suitable for Tazpkg.
     3.1 --- a/gdk-pixbuf-dev/receipt	Tue Mar 25 22:34:47 2014 +0100
     3.2 +++ b/gdk-pixbuf-dev/receipt	Tue Mar 25 22:45:56 2014 +0100
     3.3 @@ -8,6 +8,7 @@
     3.4  LICENSE="GPL2"
     3.5  WEB_SITE="http://www.gtk.org/"
     3.6  WANTED="gdk-pixbuf"
     3.7 +HOST_ARCH="i486 arm"
     3.8  
     3.9  DEPENDS="gdk-pixbuf glib-dev libpng-dev jpeg-dev pkg-config"
    3.10  
    3.11 @@ -15,10 +16,12 @@
    3.12  genpkg_rules()
    3.13  {
    3.14  	mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders $fs/usr/share
    3.15 +	[ -d "$install/usr/share/gir-1.0" ] && \
    3.16 +		cp -a $install/usr/share/gir-1.0 $fs/usr/share
    3.17  	cp -a $install/usr/include $fs/usr
    3.18  	cp -a $install/usr/lib/*.*a $fs/usr/lib
    3.19  	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    3.20 -	cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.*a $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
    3.21 -	cp -a $install/usr/share/gir-1.0 $fs/usr/share
    3.22 +	cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.*a \
    3.23 +		$fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
    3.24  }
    3.25  
     4.1 --- a/gdk-pixbuf/receipt	Tue Mar 25 22:34:47 2014 +0100
     4.2 +++ b/gdk-pixbuf/receipt	Tue Mar 25 22:45:56 2014 +0100
     4.3 @@ -9,21 +9,29 @@
     4.4  TARBALL="$PACKAGE-$VERSION.tar.xz"
     4.5  WEB_SITE="http://www.gtk.org/"
     4.6  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
     4.7 -CROSS="bug: can not run test program"
     4.8 +HOST_ARCH="i486 arm"
     4.9  
    4.10  DEPENDS="glib libgio libpng tiff jpeg zlib xorg-libX11 shared-mime-info"
    4.11  BUILD_DEPENDS="libgio-dev glib-dev jbigkit libpng-dev tiff-dev jpeg-dev \
    4.12 -xorg-libX11-dev zlib-dev pkg-config gobject-introspection-dev"
    4.13 +xorg-libX11-dev zlib-dev"
    4.14 +
    4.15 +# Handle cross compilation
    4.16 +case "$ARCH" in
    4.17 +	i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
    4.18 +	arm) ARCH_ARGS="--enable-introspection=no --cache-file=arm.cache" ;;
    4.19 +esac
    4.20  
    4.21  # Rules to configure and make the package.
    4.22  compile_rules()
    4.23  {
    4.24 -	cd $src
    4.25 +	case "$ARCH" in
    4.26 +		arm) echo "gio_can_sniff=yes" > arm.cache ;;
    4.27 +	esac
    4.28  	./configure \
    4.29  		--disable-glibtest \
    4.30  		--without-libjasper \
    4.31  		--with-x11 \
    4.32 -		--build=$HOST_SYSTEM --host=$HOST_SYSTEM &&
    4.33 +		$CONFIGURE_ARGS $ARCH_ARGS &&
    4.34  	make && make install
    4.35  }
    4.36  
    4.37 @@ -34,7 +42,8 @@
    4.38  	cp -a $install/usr/bin $fs/usr
    4.39  	cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
    4.40  		$fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
    4.41 -	cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
    4.42 +	[ -d "$install/usr/lib/girepository-1.0" ] && \
    4.43 +		cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
    4.44  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    4.45  	touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
    4.46  }
     5.1 --- a/xorg-libXp-dev/receipt	Tue Mar 25 22:34:47 2014 +0100
     5.2 +++ b/xorg-libXp-dev/receipt	Tue Mar 25 22:45:56 2014 +0100
     5.3 @@ -8,6 +8,7 @@
     5.4  LICENSE="MIT"
     5.5  WEB_SITE="http://www.x.org/"
     5.6  WANTED="xorg-libXp"
     5.7 +HOST_ARCH="i486 arm"
     5.8  
     5.9  DEPENDS="xorg-libXp xorg-libXext-dev xorg-printproto pkg-config"
    5.10  
     6.1 --- a/xorg-libXp/receipt	Tue Mar 25 22:34:47 2014 +0100
     6.2 +++ b/xorg-libXp/receipt	Tue Mar 25 22:45:56 2014 +0100
     6.3 @@ -11,7 +11,7 @@
     6.4  TARBALL="$SOURCE-$VERSION.tar.bz2"
     6.5  WEB_SITE="http://www.x.org/"
     6.6  WGET_URL="$XORG_MIRROR/lib/$TARBALL"
     6.7 -CROSS="bug: can not run test programm"
     6.8 +HOST_ARCH="i486 arm"
     6.9  
    6.10  DEPENDS="xorg-libXext"
    6.11  BUILD_DEPENDS="xorg-libXext-dev xorg-printproto"
    6.12 @@ -21,8 +21,7 @@
    6.13  {
    6.14  	cd $src
    6.15  	./configure \
    6.16 -		--build=$HOST_SYSTEM \
    6.17 -		--host=$HOST_SYSTEM &&
    6.18 +		$CONFIGURE_ARGS &&
    6.19  	make && make install
    6.20  }
    6.21  
     7.1 --- a/xorg-libXss-dev/receipt	Tue Mar 25 22:34:47 2014 +0100
     7.2 +++ b/xorg-libXss-dev/receipt	Tue Mar 25 22:45:56 2014 +0100
     7.3 @@ -9,6 +9,7 @@
     7.4  WANTED="xorg-libXss"
     7.5  SOURCE="libXScrnSaver"
     7.6  WEB_SITE="http://www.x.org/"
     7.7 +HOST_ARCH="i486 arm"
     7.8  
     7.9  DEPENDS="xorg-libXss xorg-libXext-dev xorg-scrnsaverproto pkg-config"
    7.10  
     8.1 --- a/xorg-libXss/receipt	Tue Mar 25 22:34:47 2014 +0100
     8.2 +++ b/xorg-libXss/receipt	Tue Mar 25 22:45:56 2014 +0100
     8.3 @@ -10,6 +10,7 @@
     8.4  TARBALL="$SOURCE-$VERSION.tar.bz2"
     8.5  WEB_SITE="http://www.x.org/"
     8.6  WGET_URL="$XORG_MIRROR/lib/$TARBALL"
     8.7 +HOST_ARCH="i486 arm"
     8.8  
     8.9  DEPENDS="xorg-libXext"
    8.10  BUILD_DEPENDS="xorg-scrnsaverproto"
     9.1 --- a/xorg-scrnsaverproto/receipt	Tue Mar 25 22:34:47 2014 +0100
     9.2 +++ b/xorg-scrnsaverproto/receipt	Tue Mar 25 22:45:56 2014 +0100
     9.3 @@ -10,6 +10,7 @@
     9.4  SOURCE="scrnsaverproto"
     9.5  TARBALL="$SOURCE-$VERSION.tar.bz2"
     9.6  WGET_URL="$XORG_MIRROR/proto/$TARBALL"
     9.7 +HOST_ARCH="i486 arm"
     9.8  
     9.9  DEPENDS="xorg-util-macros pkg-config"
    9.10  BUILD_DEPENDS="xorg-util-macros"