wok diff librsvg/receipt @ rev 16839

Add v4l4j (0.9.1)
author Yuri Pourre <yuripourre@gmail.com>
date Sat Jul 12 15:02:35 2014 -0300 (2014-07-12)
parents 086841d75237
children 9e01bc6321ea
line diff
     1.1 --- a/librsvg/receipt	Tue Jun 11 11:09:32 2013 +0200
     1.2 +++ b/librsvg/receipt	Sat Jul 12 15:02:35 2014 -0300
     1.3 @@ -9,20 +9,25 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.5  WEB_SITE="http://librsvg.sourceforge.net/"
     1.6  WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
     1.7 +HOST_ARCH="i486 arm"
     1.8 + 
     1.9 +DEPENDS="cairo freetype libxml2 pango fontconfig libcroco xcb-util libgsf \
    1.10 +libgio gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite \
    1.11 +xorg-libXext xorg-libXdamage"
    1.12 +BUILD_DEPENDS="libffi-dev cairo-dev freetype-dev libxml2-dev pango-dev \
    1.13 +fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev expat-dev"
    1.14  
    1.15 -DEPENDS="cairo freetype libxml2 pango fontconfig libcroco libgsf xcb-util \
    1.16 -libgio atk gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite xorg-libXext \
    1.17 -xorg-libXdamage"
    1.18 -BUILD_DEPENDS="$DEPENDS libffi-dev pkg-config cairo-dev freetype-dev libxml2-dev pango-dev \
    1.19 -fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev gtk+-dev perl expat-dev expat"
    1.20 +# Handle cross compilation
    1.21 +case "$ARCH" in
    1.22 +	i?86) BUILD_DEPENDS="gtk+-dev perl libgsf" ;;
    1.23 +esac
    1.24  
    1.25  # Rules to configure and make the package.
    1.26  compile_rules()
    1.27  {
    1.28 -	cd $src
    1.29  	./configure \
    1.30  		--disable-static \
    1.31 -		$CONFIGURE_ARGS &&
    1.32 +		$CONFIGURE_ARGS LIBCROCO_CFLAGS="-I/cross/$ARCH/sysroot/usr/include" &&
    1.33  	make && make install
    1.34  }
    1.35  
    1.36 @@ -31,11 +36,13 @@
    1.37  {
    1.38  	mkdir -p $fs/usr/lib
    1.39  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.40 -	cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib
    1.41 +	[ -d "$install/usr/lib/gtk-2.0" ] && \
    1.42 +		cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib
    1.43  	cp -a $install/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib
    1.44  
    1.45  	# remove *.*a files
    1.46 -	find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \;
    1.47 +	[ -d "$install/usr/lib/gtk-2.0" ] && \
    1.48 +		find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \;
    1.49  	find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \;
    1.50  }
    1.51