wok-current annotate librsvg/receipt @ rev 3554

Add: librsvg, librsvg-dev SVG library support
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Jun 23 14:41:13 2009 +0200 (2009-06-23)
parents
children 7245e012b011
rev   line source
erjo@3554 1 # SliTaz package receipt.
erjo@3554 2
erjo@3554 3 PACKAGE="librsvg"
erjo@3554 4 VERSION="2.13.93"
erjo@3554 5 CATEGORY="misc"
erjo@3554 6 SHORT_DESC="SVG Rendering Library"
erjo@3554 7 MAINTAINER="erjo@slitaz.org"
erjo@3554 8 DEPENDS="cairo freetype libxml pango fontconfig"
erjo@3554 9 BUILD_DEPNDS="cairo-dev freetype-dev libxml-dev pango-dev fontconfig-dev"
erjo@3554 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@3554 11 WEB_SITE="http://librsvg.sourceforge.net/"
erjo@3554 12 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.13/$TARBALL"
erjo@3554 13
erjo@3554 14 # Rules to configure and make the package.
erjo@3554 15 compile_rules()
erjo@3554 16 {
erjo@3554 17 cd $src
erjo@3554 18 ./configure \
erjo@3554 19 --prefix=/usr \
erjo@3554 20 --infodir=/usr/share/info \
erjo@3554 21 --mandir=/usr/share/man \
erjo@3554 22 $CONFIGURE_ARGS &&
erjo@3554 23 make && make DESTDIR=$PWD/_pkg install
erjo@3554 24 }
erjo@3554 25
erjo@3554 26 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@3554 27 genpkg_rules()
erjo@3554 28 {
erjo@3554 29 mkdir -p $fs/usr $fs/usr/lib
erjo@3554 30 cp -a $_pkg/usr/bin $fs/usr
erjo@3554 31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
erjo@3554 32 cp -a $_pkg/usr/lib/gtk-2.0 $fs/usr/lib
erjo@3554 33
erjo@3554 34 # remove *.*a files
erjo@3554 35 find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \;
erjo@3554 36
erjo@3554 37 # strip libs
erjo@3554 38 find $fs/usr/lib/gtk-2.0 -name "*.so" -exec strip -s {} \;
erjo@3554 39
erjo@3554 40 }
erjo@3554 41