2008-10-04 06:29:49 +02:00
|
|
|
# Template build file for 'gtk+'.
|
|
|
|
pkgname=gtk+
|
2013-05-13 16:59:26 +02:00
|
|
|
version=2.24.18
|
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-05-16 11:12:47 +02:00
|
|
|
configure_args="--enable-cups --with-xinput"
|
2009-04-18 17:05:00 +02:00
|
|
|
short_desc="The GTK+ toolkit (v2)"
|
2008-10-03 02:48:02 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 10:10:51 +02:00
|
|
|
homepage="http://www.gtk.org"
|
|
|
|
license="LGPL-2.1"
|
2012-07-16 18:26:07 +02:00
|
|
|
distfiles="${GNOME_SITE}/gtk+/2.24/gtk+-$version.tar.xz"
|
2013-05-13 16:59:26 +02:00
|
|
|
checksum=6c963101272ff53bb5b01d21bfb86cebba5f0a68f31c5e10523c63f07e762385
|
2012-12-14 13:25:32 +01:00
|
|
|
|
2013-05-06 16:40:26 +02:00
|
|
|
hostmakedepends="pkg-config perl"
|
|
|
|
makedepends="shared-mime-info glib-devel libXcursor-devel
|
2013-04-13 13:29:34 +02:00
|
|
|
libXext-devel libXrender-devel libXinerama-devel libXi-devel libXrandr-devel
|
2012-12-14 13:25:32 +01:00
|
|
|
libXcomposite-devel libXdamage-devel fontconfig-devel
|
|
|
|
gdk-pixbuf-devel>=2.26.1_2 cairo-devel pango-devel>=1.28.0
|
2013-05-06 16:40:26 +02:00
|
|
|
atk-devel>=1.32.0 cups-devel>=1.6.1_9 dbus-x11"
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-05-13 16:59:26 +02:00
|
|
|
# XXX needs native cups-config.
|
2013-05-06 16:40:26 +02:00
|
|
|
hostmakedepends+=" automake libtool gtk-doc gettext-devel glib-devel
|
|
|
|
gtk-update-icon-cache gdk-pixbuf-devel cups-devel"
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
2013-04-12 15:11:12 +02:00
|
|
|
|
|
|
|
gtk+-devel_package() {
|
2013-05-06 16:40:26 +02:00
|
|
|
depends="libglib-devel atk-devel cairo-devel gdk-pixbuf-devel pango-devel gtk+>=${version}"
|
|
|
|
short_desc+=" - development files"
|
2013-04-12 15:11:12 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/lib/gtk-2.0/include
|
2013-05-06 16:40:26 +02:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-12 15:11:12 +02:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
vmove usr/share/aclocal
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gtk+-demo_package() {
|
2013-05-06 16:40:26 +02:00
|
|
|
short_desc+=" - demonstration application"
|
2013-04-12 15:11:12 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/gtk-demo
|
|
|
|
vmove usr/share/gtk-2.0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gtk-update-icon-cache_package() {
|
2013-05-06 16:40:26 +02:00
|
|
|
short_desc+=" - The GTK+ update icon cache tool"
|
2013-04-12 15:11:12 +02:00
|
|
|
replaces="gtk+<=2.24.8_3 gtk+3<=3.2.2"
|
|
|
|
depends="gdk-pixbuf>=2.26.1_2" # libpng-1.5
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/gtk-update-icon-cache
|
2013-04-13 13:29:34 +02:00
|
|
|
vinstall ${wrksrc}/docs/reference/gtk/gtk-update-icon-cache.1 644 usr/share/man/man1
|
2013-04-12 15:11:12 +02:00
|
|
|
}
|
|
|
|
}
|
2012-12-14 13:25:32 +01:00
|
|
|
|
2013-04-12 15:11:12 +02:00
|
|
|
gtk+_package() {
|
|
|
|
depends="shared-mime-info dbus-x11 gdk-pixbuf>=2.26.1_2
|
|
|
|
gtk-update-icon-cache>=${version}_${revision}"
|
|
|
|
conf_files="/etc/gtk-2.0/im-multipress.conf"
|
|
|
|
triggers="gtk-immodules"
|
|
|
|
pkg_install() {
|
2013-05-06 16:40:26 +02:00
|
|
|
vmove all
|
2013-04-12 15:11:12 +02:00
|
|
|
}
|
|
|
|
}
|