wok-current rev 16133

ARM: add pango (still trying to cross GTK)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 25 22:54:48 2014 +0100 (2014-03-25)
parents c8d763479cbc
children ef950845a642
files pango-dev/receipt pango/receipt
line diff
     1.1 --- a/pango-dev/receipt	Tue Mar 25 22:51:54 2014 +0100
     1.2 +++ b/pango-dev/receipt	Tue Mar 25 22:54:48 2014 +0100
     1.3 @@ -8,6 +8,7 @@
     1.4  LICENSE="GPL2"
     1.5  WANTED="pango"
     1.6  WEB_SITE="http://www.pango.org/"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  DEPENDS="pango cairo-dev pkg-config"
    1.10  
    1.11 @@ -17,9 +18,11 @@
    1.12  	mkdir -p $fs/usr/lib $fs/usr/share
    1.13      cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.14      cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.15 -    cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
    1.16 +    [ -d "$install/usr/lib/girepository-1.0" ] && \
    1.17 +		cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
    1.18 +	[ -d "$install/usr/share/gir-1.0" ] && \
    1.19 +		cp -a $install/usr/share/gir-1.0 $fs/usr/share
    1.20      cp -a $install/usr/include $fs/usr
    1.21      cp -a $install/usr/lib/pango $fs/usr/lib
    1.22      rm -rf $fs/usr/lib/pango/1.6.0/modules/*.so
    1.23 -    cp -a $install/usr/share/gir-1.0 $fs/usr/share
    1.24  }
     2.1 --- a/pango/receipt	Tue Mar 25 22:51:54 2014 +0100
     2.2 +++ b/pango/receipt	Tue Mar 25 22:54:48 2014 +0100
     2.3 @@ -10,7 +10,7 @@
     2.4  WEB_SITE="http://www.pango.org/"
     2.5  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
     2.6  CONFIG_FILES="/etc/pango/pango.modules"
     2.7 -#HOST_ARCH="i486 arm"
     2.8 +HOST_ARCH="i486 arm"
     2.9  
    2.10  DEPENDS="cairo glib expat libxml2 xorg-libXft fontconfig freetype xcb-util \
    2.11  bzlib slitaz-base-files gcc-lib-base"
    2.12 @@ -19,33 +19,33 @@
    2.13  
    2.14  # Handle cross compilation
    2.15  case "$ARCH" in
    2.16 -	i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
    2.17 -	arm*) export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib" ;;
    2.18 +	i?86)
    2.19 +		BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
    2.20 +	arm*)
    2.21 +		export LIBTOOL=${HOST_SYSTEM}-libtool
    2.22 +		ARCH_ARGS="--enable-introspection=no" ;;
    2.23  esac
    2.24  
    2.25 -# Rules to configure and make the package.
    2.26 +# Rules to configure and make the package. 
    2.27  compile_rules()
    2.28  {
    2.29 -    cd $src
    2.30 -    ./configure \
    2.31 -    	--prefix=/usr \
    2.32 -    	--sysconfdir=/etc \
    2.33 -    	--mandir=/usr/share/man \
    2.34 -    	--with-html-dir=/usr/share/doc \
    2.35 -    	$CONFIGURE_ARGS &&
    2.36 -    make &&
    2.37 -    make DESTDIR=$DESTDIR install
    2.38 +	./configure \
    2.39 +		--prefix=/usr \
    2.40 +		--sysconfdir=/etc \
    2.41 +		--with-html-dir=/usr/share/doc \
    2.42 +		$CONFIGURE_ARGS $ARCH_ARGS &&
    2.43 +	make && make install
    2.44  }
    2.45  
    2.46  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.47  genpkg_rules()
    2.48  {
    2.49 -	mkdir -p $fs/usr/bin $fs/usr/lib
    2.50 +	mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango
    2.51      cp -a $install/usr/bin/* $fs/usr/bin
    2.52      cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.53      cp -a $install/usr/lib/pango $fs/usr/lib
    2.54      rm -rf $fs/usr/lib/pango/1.6.0/modules/*.la
    2.55 -    cp -a $install/etc $fs
    2.56 +    [ -d "$install/etc" ] && cp -a $install/etc $fs
    2.57      touch $fs/etc/pango/pango.modules
    2.58  }
    2.59  
    2.60 @@ -54,6 +54,6 @@
    2.61  {
    2.62      echo "Processing post-install commands..."
    2.63      # Rebuilds pango.modules when installed.
    2.64 -    chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules
    2.65 +    chroot $root/ /usr/bin/pango-querymodules > /etc/pango/pango.modules
    2.66  }
    2.67