wok-current rev 16137
ARM: try to cross compile GTK on Tank
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 00:28:42 2014 +0100 (2014-03-26) |
parents | 4833ae27d00f |
children | bba16aeb0f10 |
files | gtk+/receipt |
line diff
1.1 --- a/gtk+/receipt Wed Mar 26 00:26:09 2014 +0100 1.2 +++ b/gtk+/receipt Wed Mar 26 00:28:42 2014 +0100 1.3 @@ -11,27 +11,39 @@ 1.4 WEB_SITE="http://www.gtk.org/" 1.5 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" 1.6 CONFIG_FILES="/etc/gtk-2.0/gtk.immodules" 1.7 -CROSS="bug: /bin/bash: no: command not found" 1.8 +HOST_ARCH="i486 arm" 1.9 +CROSS_BUGS="/bin/bash: no: command not found" 1.10 1.11 DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \ 1.12 jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \ 1.13 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \ 1.14 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr" 1.15 -BUILD_DEPENDS="bash pkg-config xorg-xextproto cups-dev libcomerr3 cups dbus-dev \ 1.16 -gobject-introspection gobject-introspection-dev libffi-dev perl atk-dev \ 1.17 -pango-dev cairo-dev gdk-pixbuf-dev libxml2-dev" 1.18 +BUILD_DEPENDS="bash pkg-config xorg-xextproto cups-dev libcomerr3 \ 1.19 +dbus-dev gobject-introspection-dev libffi-dev perl atk-dev pango-dev \ 1.20 +cairo-dev gdk-pixbuf-dev libxml2-dev" 1.21 + 1.22 +# Handle cross compilation. 1.23 +case "$ARCH" in 1.24 + arm*) 1.25 + BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \ 1.26 +xorg-inputproto" 1.27 + ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \ 1.28 +--disable-papi --with-gdktarget=x11 --with-xinput --enable-display-migration \ 1.29 +gio_can_sniff=yes" 1.30 + export LDFLAGS=-L/cross/$ARCH/sysroot/usr/lib 1.31 + export CPPFLAGS=-I/cross/$ARCH/sysroot/usr/include ;; 1.32 +esac 1.33 1.34 # Rules to configure and make the package. 1.35 compile_rules() 1.36 { 1.37 - cd $src 1.38 ./configure \ 1.39 --prefix=/usr \ 1.40 --sysconfdir=/etc \ 1.41 --with-html-dir=/usr/share/doc \ 1.42 - --build=$HOST_SYSTEM --host=$HOST_SYSTEM 1.43 + $CONFIGURE_ARGS $ARCH_ARGS && 1.44 # https://bugzilla.gnome.org/show_bug.cgi?id=655517 1.45 - sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool 1.46 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool && 1.47 make $MAKEFLAGS && 1.48 make DESTDIR=$DESTDIR install 1.49 }