void-packages/srcpkgs/gtk+3/template

120 lines
3.4 KiB
Plaintext
Raw Normal View History

2011-02-14 14:08:46 +01:00
# Template build file for 'gtk+3'.
pkgname=gtk+3
2014-10-22 11:07:41 +02:00
version=3.14.4
2014-10-08 20:06:08 +02:00
revision=1
2011-02-14 14:08:46 +01:00
wrksrc="gtk+-${version}"
build_style=gnu-configure
configure_args="--disable-schemas-compile --enable-gtk2-dependency"
2011-02-14 14:08:46 +01:00
short_desc="The GTK+ toolkit (v3)"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-06-07 23:21:15 +02:00
homepage="http://www.gtk.org/"
update_pkgname="gtk+"
2011-06-07 23:21:15 +02:00
license="LGPL-2.1"
2014-03-27 10:12:40 +01:00
distfiles="${GNOME_SITE}/gtk+/${version%.*}/gtk+-${version}.tar.xz"
2014-10-22 11:07:41 +02:00
checksum=a006c716d723dab0c623491566e3292af84c87d9198a30199051d23cfc7bef2f
2011-02-14 14:08:46 +01:00
2014-09-25 16:36:48 +02:00
hostmakedepends="automake gettext-devel libtool pkg-config
glib-devel>=2.42 gtk-doc gobject-introspection gtk-update-icon-cache"
makedepends="libglib-devel>=2.42 atk-devel>=2.14 at-spi2-atk-devel>=2.14
libpng-devel fontconfig-devel cairo-devel pango-devel>=1.36
2014-09-25 16:36:48 +02:00
gdk-pixbuf-devel>=2.30"
depends="gtk-update-icon-cache shared-mime-info glib>=2.42 atk>=2.14
adwaita-icon-theme"
triggers="gtk3-immodules"
conf_files="/etc/gtk-3.0/im-multipress.conf"
# Package build options
build_options="broadway colord cups gir wayland x11"
desc_option_broadway="Enable support for the HTML5 Broadway backend"
# Enable all options by default.
build_options_default="colord cups broadway wayland x11"
# Enable gir only for native builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
if [ "$build_option_broadway" ]; then
configure_args+=" --enable-broadway-backend"
else
configure_args+=" --disable-broadway-backend"
fi
if [ "$build_option_colord" ]; then
configure_args+=" --enable-colord"
makedepends+=" colord-devel>=1.1.7"
else
configure_args+=" --disable-colord"
fi
if [ "$build_option_cups" ]; then
configure_args+=" --enable-cups"
hostmakedepends+=" cups-devel"
makedepends+=" cups-devel"
else
configure_args+=" --disable-cups"
fi
if [ "$build_option_gir" ]; then
makedepends+=" gobject-introspection"
configure_args+=" --enable-introspection"
else
configure_args+=" --disable-introspection"
fi
if [ "$build_option_wayland" ]; then
hostmakedepends+=" wayland-devel"
makedepends+=" libxkbcommon-devel wayland-devel"
configure_args+=" --enable-wayland-backend"
else
configure_args+=" --disable-wayland-backend"
fi
if [ "$build_option_x11" ]; then
depends+=" dbus-x11"
makedepends+=" libXcursor-devel libXdamage-devel libXext-devel
libXinerama-devel libXi-devel libXrandr-devel libXcomposite-devel"
configure_args+=" --enable-x11-backend"
else
configure_args+=" --disable-x11-backend"
fi
2012-10-09 18:11:34 +02:00
pre_configure() {
rm -f ${XBPS_WRAPPERDIR}/pkg-config
2014-09-25 16:36:48 +02:00
NOCONFIGURE=1 ./autogen.sh
}
post_install() {
rm -f ${DESTDIR}/usr/share/man/man1/gtk-update-icon-cache.1
}
gtk+3-devel_package() {
2014-09-25 16:36:48 +02:00
depends="${makedepends} gtk+3>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
2013-08-31 08:51:14 +02:00
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
vmove usr/share/aclocal
}
}
gtk+3-demo_package() {
short_desc+=" - demonstration application"
pkg_install() {
vmove usr/bin/gtk3-demo
vmove usr/bin/gtk3-widget-factory
vmove usr/bin/gtk3-demo-application
vmove usr/share/man/man1/gtk3-widget-factory.1
vmove usr/share/gtk-3.0/gtkbuilder.rng
vmove usr/share/glib-2.0/schemas/org.gtk.Demo.gschema.xml
vmove usr/share/glib-2.0/schemas/org.gtk.exampleapp.gschema.xml
vmove usr/share/applications/gtk3-widget-factory.desktop
vmove usr/share/applications/gtk3-demo.desktop
vmove usr/share/icons
}
}