2010-11-20 16:10:56 +01:00
|
|
|
# Template build file for 'glade3'.
|
|
|
|
pkgname=glade3
|
2013-09-26 23:27:25 +02:00
|
|
|
version=3.16.0
|
2011-04-08 09:21:15 +02:00
|
|
|
wrksrc=glade-${version}
|
2014-02-19 16:03:42 +01:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-10-15 10:15:22 +02:00
|
|
|
configure_args="--disable-static"
|
2014-02-19 16:03:42 +01:00
|
|
|
hostmakedepends="which pkg-config intltool gnome-doc-utils itstool glib-devel"
|
2013-09-26 23:27:25 +02:00
|
|
|
makedepends="gtk+3-devel libxml2-devel python-devel pygobject-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="hicolor-icon-theme desktop-file-utils"
|
2013-09-26 23:27:25 +02:00
|
|
|
short_desc="An User Interface Designer for GTK+3"
|
2013-03-31 09:51:11 +02:00
|
|
|
homepage="http://glade.gnome.org/"
|
|
|
|
license="GPL-2"
|
2010-11-20 16:10:56 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-09-26 23:27:25 +02:00
|
|
|
distfiles="${GNOME_SITE}/glade/${version%.*}/glade-$version.tar.xz"
|
|
|
|
checksum=b80773a294d3af07739d9d53bae12e11cf0bbf420bbc8931cc5e20b2647e3626
|
2010-11-20 16:10:56 +01:00
|
|
|
|
2014-02-19 16:03:42 +01:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
desc_option_gir="Enable support for building gobject introspection data"
|
2010-11-20 16:10:56 +01:00
|
|
|
|
2014-02-19 16:03:42 +01:00
|
|
|
# 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
|
2013-04-12 13:13:49 +02:00
|
|
|
|
|
|
|
libgladeui3_package() {
|
|
|
|
depends="pygobject"
|
|
|
|
short_desc="GTK+ User Interface Build core library"
|
|
|
|
pkg_install() {
|
2013-09-26 23:27:25 +02:00
|
|
|
vmove "usr/lib/*.so.*"
|
2014-02-19 16:03:42 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/lib/girepository-1.0
|
|
|
|
fi
|
2013-04-12 13:13:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
glade3-devel_package() {
|
|
|
|
depends="gtk+3-devel libxml2-devel libgladeui3-${version}_${revision}"
|
2013-09-26 23:27:25 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-19 16:03:42 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-12 13:13:49 +02:00
|
|
|
vmove usr/share/gtk-doc
|
2013-09-26 23:27:25 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 13:13:49 +02:00
|
|
|
}
|
|
|
|
}
|