wok-current rev 16239

ARM: gtk cross compile (exporting LIBTOOL to use cross tool was the fix)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 02 23:48:03 2014 +0200 (2014-04-02)
parents 30cd20bf889e
children fbe5a1f255fe
files gtk+-demo/receipt gtk+-dev/receipt gtk+/receipt
line diff
     1.1 --- a/gtk+-demo/receipt	Wed Apr 02 13:44:10 2014 +0000
     1.2 +++ b/gtk+-demo/receipt	Wed Apr 02 23:48:03 2014 +0200
     1.3 @@ -8,6 +8,7 @@
     1.4  LICENSE="GPL2"
     1.5  WANTED="gtk+"
     1.6  WEB_SITE="http://www.gtk.org/"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  DEPENDS="gtk+"
    1.10  
     2.1 --- a/gtk+-dev/receipt	Wed Apr 02 13:44:10 2014 +0000
     2.2 +++ b/gtk+-dev/receipt	Wed Apr 02 23:48:03 2014 +0200
     2.3 @@ -8,8 +8,10 @@
     2.4  LICENSE="GPL2"
     2.5  WANTED="gtk+"
     2.6  WEB_SITE="http://www.gtk.org/"
     2.7 +HOST_ARCH="i486 arm"
     2.8  
     2.9 -DEPENDS="cairo-dev glib-dev pango-dev atk-dev tiff-dev pkg-config libpng-dev jpeg-dev libgio-dev gtk+ gdk-pixbuf-dev libxml2-dev"
    2.10 +DEPENDS="cairo-dev glib-dev pango-dev atk-dev tiff-dev pkg-config \
    2.11 +libpng-dev jpeg-dev libgio-dev gtk+ gdk-pixbuf-dev libxml2-dev"
    2.12  
    2.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.14  genpkg_rules()
    2.15 @@ -21,6 +23,7 @@
    2.16  	cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib
    2.17  	rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.so*
    2.18  	cp -a $install/usr/include $fs/usr
    2.19 +	[ -d "$install/usr/share/gir-1.0" ] && \
    2.20 +		cp -a $install/usr/share/gir-1.0 $fs/usr/share
    2.21  	cp -a $install/usr/share/aclocal $fs/usr/share
    2.22 -	cp -a $install/usr/share/gir-1.0 $fs/usr/share
    2.23  }
     3.1 --- a/gtk+/receipt	Wed Apr 02 13:44:10 2014 +0000
     3.2 +++ b/gtk+/receipt	Wed Apr 02 23:48:03 2014 +0200
     3.3 @@ -11,28 +11,27 @@
     3.4  WEB_SITE="http://www.gtk.org/"
     3.5  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
     3.6  CONFIG_FILES="/etc/gtk-2.0/gtk.immodules"
     3.7 -
     3.8  HOST_ARCH="i486 arm"
     3.9 -CROSS_BUGS="/bin/bash: no: command not found"
    3.10  
    3.11  DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \
    3.12  jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \
    3.13  xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \
    3.14  xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr"
    3.15 -BUILD_DEPENDS="bash pkg-config xorg-xextproto cups-dev libcomerr3 \
    3.16 -dbus-dev gobject-introspection-dev libffi-dev perl atk-dev pango-dev \
    3.17 -cairo-dev gdk-pixbuf-dev libxml2-dev"
    3.18 +BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
    3.19 +xorg-inputproto libxcb-dev fontconfig-dev freetype-dev pixman-dev libxml2-dev \
    3.20 +libpng-dev libffi-dev xorg-xextproto"
    3.21  
    3.22  # Handle cross compilation.
    3.23  case "$ARCH" in
    3.24 -	arm*) 
    3.25 -		BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
    3.26 -xorg-inputproto"
    3.27 +	i?86)
    3.28 +		BUILD_DEPENDS="$BUILD_DEPENDS bash pkg-config cups-dev perl 
    3.29 +		gobject-introspection-dev" ;;
    3.30 +	arm*)
    3.31  		ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
    3.32 ---disable-papi --with-gdktarget=x11 --with-xinput --enable-display-migration \
    3.33 -gio_can_sniff=yes"
    3.34 -		export LDFLAGS=-L/cross/$ARCH/sysroot/usr/lib 
    3.35 -		export CPPFLAGS=-I/cross/$ARCH/sysroot/usr/include ;;
    3.36 +		--disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes"
    3.37 +		export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
    3.38 +		export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include"
    3.39 +		export LIBTOOL=${HOST_SYSTEM}-libtool ;;
    3.40  esac
    3.41  
    3.42  # Rules to configure and make the package.
    3.43 @@ -42,7 +41,7 @@
    3.44  		--prefix=/usr \
    3.45  		--sysconfdir=/etc \
    3.46  		--with-html-dir=/usr/share/doc \
    3.47 -		$CONFIGURE_ARGS $ARCH_ARGS &&
    3.48 +		$CONFIGURE_ARGS ${ARCH_ARGS} &&
    3.49  	# https://bugzilla.gnome.org/show_bug.cgi?id=655517
    3.50  	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool &&
    3.51  	make $MAKEFLAGS &&