2009-05-15 03:22:34 +02:00
|
|
|
# Template file for 'libsoup'
|
|
|
|
pkgname=libsoup
|
2013-11-12 09:22:56 +01:00
|
|
|
version=2.44.2
|
2014-01-29 10:40:46 +01:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-09-26 02:29:34 +02:00
|
|
|
configure_args="--disable-static"
|
2014-01-29 10:40:46 +01:00
|
|
|
hostmakedepends="pkg-config intltool glib-devel libtool"
|
|
|
|
makedepends="libglib-devel libxml2-devel sqlite-devel glib-networking"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="glib-networking"
|
2009-05-15 03:22:34 +02:00
|
|
|
short_desc="HTTP library implementation in C"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-29 08:06:53 +02:00
|
|
|
homepage="http://www.gnome.org"
|
|
|
|
license="LGPL-2.1"
|
2013-09-26 14:26:34 +02:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
2013-11-12 09:22:56 +01:00
|
|
|
checksum=e7e4b5ab74a6c00fc267c9f5963852d28759ad3154dab6388e2d6e1962d598f3
|
2013-04-13 10:15:49 +02:00
|
|
|
|
2014-01-29 10:40:46 +01:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
desc_option_gir="Enable support for building gobject introspection data"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
hostmakedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
libsoup-devel_package() {
|
2013-10-15 16:30:17 +02:00
|
|
|
depends="libglib-devel libxml2-devel libsoup>=${version}_${revision}"
|
2013-09-26 14:26:34 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/pkgconfig/libsoup-2.4.pc
|
2014-01-29 10:40:46 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0/Soup-2.4.gir
|
|
|
|
fi
|
2013-04-13 10:15:49 +02:00
|
|
|
vmove usr/include/libsoup-2.4
|
|
|
|
vmove usr/share/gtk-doc
|
2013-09-26 14:26:34 +02:00
|
|
|
vmove "usr/lib/libsoup-2.4.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libsoup-gnome-devel_package() {
|
2013-10-15 16:30:17 +02:00
|
|
|
depends="libsoup-devel>=${version}_${revision} libsoup-gnome>=${version}_${revision}"
|
2013-09-26 14:26:34 +02:00
|
|
|
short_desc+=" - GNOME development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/include/libsoup-gnome*"
|
|
|
|
vmove "usr/lib/pkgconfig/*gnome*"
|
2014-01-29 10:40:46 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove "usr/share/gir-1.0/SoupGNOME*"
|
|
|
|
fi
|
2013-09-26 14:26:34 +02:00
|
|
|
vmove "usr/lib/libsoup-gnome*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libsoup-gnome_package() {
|
2013-09-26 14:26:34 +02:00
|
|
|
short_desc+=" - GNOME libraries"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
2013-09-26 14:26:34 +02:00
|
|
|
vmove "usr/lib/libsoup-gnome*.so.*"
|
2014-01-29 10:40:46 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove "usr/lib/girepository-1.0/SoupGNOME*"
|
|
|
|
fi
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|