2008-10-04 04:29:49 +00:00
|
|
|
# Template build file for 'gtk+'.
|
|
|
|
pkgname=gtk+
|
2015-03-05 08:48:42 +00:00
|
|
|
version=2.24.27
|
2015-03-06 08:47:48 +00:00
|
|
|
revision=2
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2015-02-17 08:13:30 +00:00
|
|
|
configure_args="--enable-man --enable-cups --with-xinput $(vopt_enable gir introspection)"
|
2009-04-18 15:05:00 +00:00
|
|
|
short_desc="The GTK+ toolkit (v2)"
|
2008-10-03 00:48:02 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 08:10:51 +00:00
|
|
|
homepage="http://www.gtk.org"
|
|
|
|
license="LGPL-2.1"
|
2012-07-16 16:26:07 +00:00
|
|
|
distfiles="${GNOME_SITE}/gtk+/2.24/gtk+-$version.tar.xz"
|
2015-03-05 08:48:42 +00:00
|
|
|
checksum=20cb10cae43999732a9af2e9aac4d1adebf2a9c2e1ba147050976abca5cd24f4
|
2012-12-14 12:25:32 +00:00
|
|
|
|
2015-02-17 08:13:30 +00:00
|
|
|
hostmakedepends="pkg-config perl xmlto $(vopt_if gir gobject-introspection)"
|
2013-05-06 14:40:26 +00:00
|
|
|
makedepends="shared-mime-info glib-devel libXcursor-devel
|
2013-04-13 11:29:34 +00:00
|
|
|
libXext-devel libXrender-devel libXinerama-devel libXi-devel libXrandr-devel
|
2012-12-14 12:25:32 +00:00
|
|
|
libXcomposite-devel libXdamage-devel fontconfig-devel
|
|
|
|
gdk-pixbuf-devel>=2.26.1_2 cairo-devel pango-devel>=1.28.0
|
2013-05-06 14:40:26 +00:00
|
|
|
atk-devel>=1.32.0 cups-devel>=1.6.1_9 dbus-x11"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="shared-mime-info dbus-x11 gdk-pixbuf>=2.26.1_2
|
2014-12-14 11:25:14 +00:00
|
|
|
gtk-update-icon-cache>=${version}_${revision} gnome-icon-theme adwaita-icon-theme"
|
2014-01-01 15:10:11 +00:00
|
|
|
conf_files="/etc/gtk-2.0/im-multipress.conf"
|
|
|
|
triggers="gtk-immodules"
|
2013-05-06 14:40:26 +00:00
|
|
|
|
2014-12-14 11:37:43 +00:00
|
|
|
CFLAGS="-UGDK_PIXBUF_DISABLE_DEPRECATED"
|
|
|
|
|
2013-05-06 14:40:26 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2015-02-17 08:13:30 +00:00
|
|
|
hostmakedepends+=" libtool gtk-doc glib-devel gdk-pixbuf-devel gtk-update-icon-cache"
|
2013-05-06 14:40:26 +00:00
|
|
|
pre_configure() {
|
2013-09-17 19:59:29 +00:00
|
|
|
libtoolize -f
|
2013-05-06 14:40:26 +00:00
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
2013-10-12 07:16:36 +00:00
|
|
|
post_install() {
|
|
|
|
# Provide a default (icon)theme and font.
|
|
|
|
vinstall ${FILESDIR}/gtkrc 644 usr/share/gtk-2.0
|
|
|
|
}
|
|
|
|
|
2013-05-06 14:40:26 +00:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
2013-04-12 13:11:12 +00:00
|
|
|
gtk+-devel_package() {
|
2014-05-28 10:13:38 +00:00
|
|
|
depends="libglib-devel atk-devel cairo-devel gdk-pixbuf-devel pango-devel gtk+>=${version}_${revision}"
|
2013-05-06 14:40:26 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:11:12 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-07-05 04:56:44 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 13:11:12 +00:00
|
|
|
vmove usr/lib/gtk-2.0/include
|
2013-05-06 14:40:26 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-12 13:11:12 +00:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
vmove usr/share/aclocal
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gtk+-demo_package() {
|
2013-05-06 14:40:26 +00:00
|
|
|
short_desc+=" - demonstration application"
|
2013-04-12 13:11:12 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/gtk-demo
|
2013-10-12 07:22:45 +00:00
|
|
|
vmove usr/share/gtk-2.0/demo
|
2013-04-12 13:11:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
gtk-update-icon-cache_package() {
|
2013-05-06 14:40:26 +00:00
|
|
|
short_desc+=" - The GTK+ update icon cache tool"
|
2013-04-12 13:11:12 +00: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
|
2015-03-06 08:47:48 +00:00
|
|
|
vmove usr/share/man/man1/gtk-update-icon-cache.1
|
2013-04-12 13:11:12 +00:00
|
|
|
}
|
|
|
|
}
|