# HG changeset patch # User Christophe Lincoln # Date 1395784488 -3600 # Node ID 7ab1534edf55fe66e7cb368e46255d8333e640f2 # Parent c8d763479cbc30743e5af7734ad4d67a33b27d27 ARM: add pango (still trying to cross GTK) diff -r c8d763479cbc -r 7ab1534edf55 pango-dev/receipt --- a/pango-dev/receipt Tue Mar 25 22:51:54 2014 +0100 +++ b/pango-dev/receipt Tue Mar 25 22:54:48 2014 +0100 @@ -8,6 +8,7 @@ LICENSE="GPL2" WANTED="pango" WEB_SITE="http://www.pango.org/" +HOST_ARCH="i486 arm" DEPENDS="pango cairo-dev pkg-config" @@ -17,9 +18,11 @@ mkdir -p $fs/usr/lib $fs/usr/share cp -a $install/usr/lib/*.*a $fs/usr/lib cp -a $install/usr/lib/pkgconfig $fs/usr/lib - cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib + [ -d "$install/usr/lib/girepository-1.0" ] && \ + cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib + [ -d "$install/usr/share/gir-1.0" ] && \ + cp -a $install/usr/share/gir-1.0 $fs/usr/share cp -a $install/usr/include $fs/usr cp -a $install/usr/lib/pango $fs/usr/lib rm -rf $fs/usr/lib/pango/1.6.0/modules/*.so - cp -a $install/usr/share/gir-1.0 $fs/usr/share } diff -r c8d763479cbc -r 7ab1534edf55 pango/receipt --- a/pango/receipt Tue Mar 25 22:51:54 2014 +0100 +++ b/pango/receipt Tue Mar 25 22:54:48 2014 +0100 @@ -10,7 +10,7 @@ WEB_SITE="http://www.pango.org/" WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" CONFIG_FILES="/etc/pango/pango.modules" -#HOST_ARCH="i486 arm" +HOST_ARCH="i486 arm" DEPENDS="cairo glib expat libxml2 xorg-libXft fontconfig freetype xcb-util \ bzlib slitaz-base-files gcc-lib-base" @@ -19,33 +19,33 @@ # Handle cross compilation case "$ARCH" in - i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; - arm*) export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib" ;; + i?86) + BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; + arm*) + export LIBTOOL=${HOST_SYSTEM}-libtool + ARCH_ARGS="--enable-introspection=no" ;; esac -# Rules to configure and make the package. +# Rules to configure and make the package. compile_rules() { - cd $src - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --with-html-dir=/usr/share/doc \ - $CONFIGURE_ARGS && - make && - make DESTDIR=$DESTDIR install + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --with-html-dir=/usr/share/doc \ + $CONFIGURE_ARGS $ARCH_ARGS && + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/bin $fs/usr/lib + mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango cp -a $install/usr/bin/* $fs/usr/bin cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/pango $fs/usr/lib rm -rf $fs/usr/lib/pango/1.6.0/modules/*.la - cp -a $install/etc $fs + [ -d "$install/etc" ] && cp -a $install/etc $fs touch $fs/etc/pango/pango.modules } @@ -54,6 +54,6 @@ { echo "Processing post-install commands..." # Rebuilds pango.modules when installed. - chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules + chroot $root/ /usr/bin/pango-querymodules > /etc/pango/pango.modules }