wok rev 16222

ARM add librsvg
author Christophe Lincoln <pankso@slitaz.org>
date Mon Mar 31 23:37:15 2014 +0200 (2014-03-31)
parents e2dc7c2d000d
children fb330dab8442
files librsvg-apps/receipt librsvg-dev/receipt librsvg/receipt
line diff
     1.1 --- a/librsvg-apps/receipt	Mon Mar 31 23:12:38 2014 +0200
     1.2 +++ b/librsvg-apps/receipt	Mon Mar 31 23:37:15 2014 +0200
     1.3 @@ -8,6 +8,7 @@
     1.4  LICENSE="GPL2"
     1.5  WANTED="librsvg"
     1.6  WEB_SITE="http://librsvg.sourceforge.net/"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  DEPENDS="librsvg python gtk+ libgsf"
    1.10  
     2.1 --- a/librsvg-dev/receipt	Mon Mar 31 23:12:38 2014 +0200
     2.2 +++ b/librsvg-dev/receipt	Mon Mar 31 23:37:15 2014 +0200
     2.3 @@ -8,6 +8,7 @@
     2.4  LICENSE="GPL2"
     2.5  WEB_SITE="http://librsvg.sourceforge.net/"
     2.6  WANTED="librsvg"
     2.7 +HOST_ARCH="i486 arm"
     2.8  
     2.9  DEPENDS="librsvg cairo-dev gdk-pixbuf-dev libgio-dev glib-dev libcroco-dev \
    2.10  pkg-config"
    2.11 @@ -19,11 +20,13 @@
    2.12  	cp -a $install/usr/include $fs/usr
    2.13  	cp -a $install/usr/lib/*.*a $fs/usr/lib
    2.14  	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    2.15 -	cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib
    2.16 +	[ -d "$install/usr/lib/gtk-2.0" ] && \
    2.17 +		cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib
    2.18  	cp -a $install/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib
    2.19  
    2.20  	# remove *.*a files
    2.21 -	find $fs/usr/lib/gtk-2.0 -name "*.so*" -exec rm -f {} \;
    2.22 +	[ -d "$install/usr/lib/gtk-2.0" ] && \
    2.23 +		find $fs/usr/lib/gtk-2.0 -name "*.so*" -exec rm -f {} \;
    2.24  	find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.so*" -exec rm -f {} \;
    2.25  }
    2.26  
     3.1 --- a/librsvg/receipt	Mon Mar 31 23:12:38 2014 +0200
     3.2 +++ b/librsvg/receipt	Mon Mar 31 23:37:15 2014 +0200
     3.3 @@ -9,20 +9,25 @@
     3.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     3.5  WEB_SITE="http://librsvg.sourceforge.net/"
     3.6  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
     3.7 +HOST_ARCH="i486 arm"
     3.8 + 
     3.9 +DEPENDS="cairo freetype libxml2 pango fontconfig libcroco xcb-util libgsf \
    3.10 +libgio gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite \
    3.11 +xorg-libXext xorg-libXdamage"
    3.12 +BUILD_DEPENDS="libffi-dev cairo-dev freetype-dev libxml2-dev pango-dev \
    3.13 +fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev expat-dev"
    3.14  
    3.15 -DEPENDS="cairo freetype libxml2 pango fontconfig libcroco libgsf xcb-util \
    3.16 -libgio atk gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite xorg-libXext \
    3.17 -xorg-libXdamage"
    3.18 -BUILD_DEPENDS="$DEPENDS libffi-dev pkg-config cairo-dev freetype-dev libxml2-dev pango-dev \
    3.19 -fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev gtk+-dev perl expat-dev expat"
    3.20 +# Handle cross compilation
    3.21 +case "$ARCH" in
    3.22 +	i?86) BUILD_DEPENDS="gtk+-dev perl libgsf" ;;
    3.23 +esac
    3.24  
    3.25  # Rules to configure and make the package.
    3.26  compile_rules()
    3.27  {
    3.28 -	cd $src
    3.29  	./configure \
    3.30  		--disable-static \
    3.31 -		$CONFIGURE_ARGS &&
    3.32 +		$CONFIGURE_ARGS LIBCROCO_CFLAGS="-I/cross/$ARCH/sysroot/usr/include" &&
    3.33  	make && make install
    3.34  }
    3.35  
    3.36 @@ -31,11 +36,13 @@
    3.37  {
    3.38  	mkdir -p $fs/usr/lib
    3.39  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    3.40 -	cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib
    3.41 +	[ -d "$install/usr/lib/gtk-2.0" ] && \
    3.42 +		cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib
    3.43  	cp -a $install/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib
    3.44  
    3.45  	# remove *.*a files
    3.46 -	find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \;
    3.47 +	[ -d "$install/usr/lib/gtk-2.0" ] && \
    3.48 +		find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \;
    3.49  	find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \;
    3.50  }
    3.51