void-packages/srcpkgs/gtk+/template

78 lines
2.3 KiB
Plaintext
Raw Normal View History

# Template build file for 'gtk+'.
pkgname=gtk+
2015-02-17 09:13:30 +01:00
version=2.24.26
revision=1
build_style=gnu-configure
2015-02-17 09:13:30 +01:00
configure_args="--enable-man --enable-cups --with-xinput $(vopt_enable gir introspection)"
short_desc="The GTK+ toolkit (v2)"
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"
2015-02-17 09:13:30 +01:00
checksum=d84fc0f1e3cd99e8b9ec756e754f42653940638579a8f28d0eabffc37018d133
2012-12-14 13:25:32 +01:00
2015-02-17 09:13:30 +01:00
hostmakedepends="pkg-config perl xmlto $(vopt_if gir gobject-introspection)"
makedepends="shared-mime-info glib-devel libXcursor-devel
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
atk-devel>=1.32.0 cups-devel>=1.6.1_9 dbus-x11"
depends="shared-mime-info dbus-x11 gdk-pixbuf>=2.26.1_2
gtk-update-icon-cache>=${version}_${revision} gnome-icon-theme adwaita-icon-theme"
conf_files="/etc/gtk-2.0/im-multipress.conf"
triggers="gtk-immodules"
CFLAGS="-UGDK_PIXBUF_DISABLE_DEPRECATED"
if [ "$CROSS_BUILD" ]; then
2015-02-17 09:13:30 +01:00
hostmakedepends+=" libtool gtk-doc glib-devel gdk-pixbuf-devel gtk-update-icon-cache"
pre_configure() {
2013-09-17 21:59:29 +02:00
libtoolize -f
}
fi
post_install() {
# Provide a default (icon)theme and font.
vinstall ${FILESDIR}/gtkrc 644 usr/share/gtk-2.0
}
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
gtk+-devel_package() {
2014-05-28 12:13:38 +02:00
depends="libglib-devel atk-devel cairo-devel gdk-pixbuf-devel pango-devel gtk+>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
2013-07-05 06:56:44 +02:00
vmove "usr/lib/*.so"
vmove usr/lib/gtk-2.0/include
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
vmove usr/share/aclocal
}
}
gtk+-demo_package() {
short_desc+=" - demonstration application"
pkg_install() {
vmove usr/bin/gtk-demo
vmove usr/share/gtk-2.0/demo
}
}
gtk-update-icon-cache_package() {
short_desc+=" - The GTK+ update icon cache tool"
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-02-17 09:13:30 +01:00
vman ${wrksrc}/docs/reference/gtk/gtk-update-icon-cache.1
}
}