# HG changeset patch # User Christophe Lincoln # Date 1396301835 -7200 # Node ID 88af587617c48c8ff68a51dc389f4aee045a1ccf # Parent e2dc7c2d000d5967e740200595f00b79739e06d7 ARM add librsvg diff -r e2dc7c2d000d -r 88af587617c4 librsvg-apps/receipt --- a/librsvg-apps/receipt Mon Mar 31 23:12:38 2014 +0200 +++ b/librsvg-apps/receipt Mon Mar 31 23:37:15 2014 +0200 @@ -8,6 +8,7 @@ LICENSE="GPL2" WANTED="librsvg" WEB_SITE="http://librsvg.sourceforge.net/" +HOST_ARCH="i486 arm" DEPENDS="librsvg python gtk+ libgsf" diff -r e2dc7c2d000d -r 88af587617c4 librsvg-dev/receipt --- a/librsvg-dev/receipt Mon Mar 31 23:12:38 2014 +0200 +++ b/librsvg-dev/receipt Mon Mar 31 23:37:15 2014 +0200 @@ -8,6 +8,7 @@ LICENSE="GPL2" WEB_SITE="http://librsvg.sourceforge.net/" WANTED="librsvg" +HOST_ARCH="i486 arm" DEPENDS="librsvg cairo-dev gdk-pixbuf-dev libgio-dev glib-dev libcroco-dev \ pkg-config" @@ -19,11 +20,13 @@ cp -a $install/usr/include $fs/usr cp -a $install/usr/lib/*.*a $fs/usr/lib cp -a $install/usr/lib/pkgconfig $fs/usr/lib - cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib + [ -d "$install/usr/lib/gtk-2.0" ] && \ + cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib cp -a $install/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib # remove *.*a files - find $fs/usr/lib/gtk-2.0 -name "*.so*" -exec rm -f {} \; + [ -d "$install/usr/lib/gtk-2.0" ] && \ + find $fs/usr/lib/gtk-2.0 -name "*.so*" -exec rm -f {} \; find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.so*" -exec rm -f {} \; } diff -r e2dc7c2d000d -r 88af587617c4 librsvg/receipt --- a/librsvg/receipt Mon Mar 31 23:12:38 2014 +0200 +++ b/librsvg/receipt Mon Mar 31 23:37:15 2014 +0200 @@ -9,20 +9,25 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://librsvg.sourceforge.net/" WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" +HOST_ARCH="i486 arm" + +DEPENDS="cairo freetype libxml2 pango fontconfig libcroco xcb-util libgsf \ +libgio gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite \ +xorg-libXext xorg-libXdamage" +BUILD_DEPENDS="libffi-dev cairo-dev freetype-dev libxml2-dev pango-dev \ +fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev expat-dev" -DEPENDS="cairo freetype libxml2 pango fontconfig libcroco libgsf xcb-util \ -libgio atk gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite xorg-libXext \ -xorg-libXdamage" -BUILD_DEPENDS="$DEPENDS libffi-dev pkg-config cairo-dev freetype-dev libxml2-dev pango-dev \ -fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev gtk+-dev perl expat-dev expat" +# Handle cross compilation +case "$ARCH" in + i?86) BUILD_DEPENDS="gtk+-dev perl libgsf" ;; +esac # Rules to configure and make the package. compile_rules() { - cd $src ./configure \ --disable-static \ - $CONFIGURE_ARGS && + $CONFIGURE_ARGS LIBCROCO_CFLAGS="-I/cross/$ARCH/sysroot/usr/include" && make && make install } @@ -31,11 +36,13 @@ { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib - cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib + [ -d "$install/usr/lib/gtk-2.0" ] && \ + cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib cp -a $install/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib # remove *.*a files - find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \; + [ -d "$install/usr/lib/gtk-2.0" ] && \ + find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \; find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \; }