2009-04-21 23:59:17 +02:00
|
|
|
# Template build file for 'librsvg'.
|
|
|
|
pkgname=librsvg
|
2014-03-18 16:07:13 +01:00
|
|
|
version=2.40.2
|
2014-04-04 14:19:38 +02:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-02-08 10:06:42 +01:00
|
|
|
configure_args="--disable-static"
|
|
|
|
hostmakedepends="libtool pkg-config intltool python glib-devel gdk-pixbuf-devel"
|
|
|
|
makedepends="libcroco-devel gtk+3-devel>=3.10.7_3"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="gdk-pixbuf>=2.26.1_2"
|
|
|
|
triggers="gtk-pixbuf-loaders"
|
2011-04-05 12:07:04 +02:00
|
|
|
short_desc="SVG library for GNOME"
|
2009-04-21 23:59:17 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-06-06 08:14:19 +02:00
|
|
|
homepage="http://librsvg.sourceforge.net/"
|
|
|
|
license="LGPL-2.1"
|
2013-09-26 14:56:07 +02:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
2014-03-18 16:07:13 +01:00
|
|
|
checksum=48049b643294636df7de1a4b997414d699666f5dc44776945c218a257d2a291c
|
2009-04-21 23:59:17 +02:00
|
|
|
|
2014-02-08 10:06:42 +01:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
|
|
|
librsvg-devel_package() {
|
2013-10-15 06:54:46 +02:00
|
|
|
depends="gdk-pixbuf-devel cairo-devel libcroco-devel ${sourcepkg}>=${version}_${revision}"
|
2013-09-26 14:56:07 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-09-26 14:56:07 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
vmove usr/share/gtk-doc
|
2014-02-08 10:06:42 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-26 14:56:07 +02:00
|
|
|
librsvg-utils_package() {
|
|
|
|
short_desc+=" - utilities"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/rsvg-view-3
|
|
|
|
vmove usr/bin/rsvg-convert
|
|
|
|
vmove usr/share/man/man1/rsvg-convert.1
|
|
|
|
}
|
|
|
|
}
|