76 lines
2.2 KiB
Bash
76 lines
2.2 KiB
Bash
# Template build file for 'gtk+'.
|
|
pkgname=gtk+
|
|
version=2.24.28
|
|
revision=3
|
|
build_style=gnu-configure
|
|
configure_args="--enable-man --enable-cups --with-xinput $(vopt_enable gir introspection)"
|
|
short_desc="The GTK+ toolkit (v2)"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.gtk.org"
|
|
license="LGPL-2.1"
|
|
distfiles="${GNOME_SITE}/gtk+/2.24/gtk+-$version.tar.xz"
|
|
checksum=b2c6441e98bc5232e5f9bba6965075dcf580a8726398f7374d39f90b88ed4656
|
|
|
|
hostmakedepends="pkg-config perl xmlto glib-devel $(vopt_if gir gobject-introspection)"
|
|
makedepends="libglib-devel libXcursor-devel
|
|
libXext-devel libXrender-devel libXinerama-devel libXi-devel libXrandr-devel
|
|
libXcomposite-devel libXdamage-devel fontconfig-devel gdk-pixbuf-devel
|
|
cairo-devel pango-devel atk-devel cups-devel"
|
|
depends="shared-mime-info dbus-x11 gtk-update-icon-cache-${version}_${revision}"
|
|
conf_files="/etc/gtk-2.0/im-multipress.conf"
|
|
triggers="gtk-immodules"
|
|
|
|
CFLAGS="-UGDK_PIXBUF_DISABLE_DEPRECATED"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" automake libtool gtk-doc glib-devel gdk-pixbuf-devel gtk-update-icon-cache"
|
|
pre_configure() {
|
|
autoreconf -if
|
|
}
|
|
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() {
|
|
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
|
|
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
|
|
vmove usr/share/man/man1/gtk-update-icon-cache.1
|
|
}
|
|
}
|