2011-02-14 13:08:46 +00:00
|
|
|
# Template build file for 'gtk+3'.
|
|
|
|
pkgname=gtk+3
|
2015-04-10 06:17:21 +00:00
|
|
|
version=3.14.12
|
2015-04-17 05:56:32 +00:00
|
|
|
revision=2
|
2011-02-14 13:08:46 +00:00
|
|
|
wrksrc="gtk+-${version}"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-12-13 11:14:31 +00:00
|
|
|
configure_args="--disable-schemas-compile --enable-gtk2-dependency
|
|
|
|
$(vopt_enable broadway broadway-backend) $(vopt_enable colord)
|
|
|
|
$(vopt_enable cups) $(vopt_enable gir introspection)
|
|
|
|
$(vopt_enable wayland wayland-backend) $(vopt_enable x11 x11-backend)"
|
2011-02-14 13:08:46 +00:00
|
|
|
short_desc="The GTK+ toolkit (v3)"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-06-07 21:21:15 +00:00
|
|
|
homepage="http://www.gtk.org/"
|
|
|
|
license="LGPL-2.1"
|
2014-03-27 09:12:40 +00:00
|
|
|
distfiles="${GNOME_SITE}/gtk+/${version%.*}/gtk+-${version}.tar.xz"
|
2015-04-10 06:17:21 +00:00
|
|
|
checksum=3aaf1f04b6393695a726b4bbe09ed9c9ddb0f779edc8238f803d5a4f10a2f549
|
2011-02-14 13:08:46 +00:00
|
|
|
|
2014-09-25 14:36:48 +00:00
|
|
|
hostmakedepends="automake gettext-devel libtool pkg-config
|
2015-03-27 09:50:40 +00:00
|
|
|
glib-devel gtk-doc gobject-introspection gtk-update-icon-cache
|
2014-12-13 11:14:31 +00:00
|
|
|
$(vopt_if wayland wayland-devel)"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="libglib-devel atk-devel at-spi2-atk-devel
|
|
|
|
libpng-devel fontconfig-devel cairo-devel pango-devel gdk-pixbuf-devel
|
2015-03-27 10:32:55 +00:00
|
|
|
$(vopt_if colord colord-devel) $(vopt_if cups cups-devel)
|
|
|
|
$(vopt_if wayland 'libxkbcommon-devel wayland-devel')
|
2014-12-13 11:14:31 +00:00
|
|
|
$(vopt_if x11 'libXcursor-devel libXdamage-devel libXext-devel libXinerama-devel libXi-devel libXrandr-devel libXcomposite-devel')"
|
2015-04-17 05:56:32 +00:00
|
|
|
depends="gtk-update-icon-cache shared-mime-info $(vopt_if x11 dbus-x11)"
|
2014-01-01 15:10:11 +00:00
|
|
|
triggers="gtk3-immodules"
|
|
|
|
conf_files="/etc/gtk-3.0/im-multipress.conf"
|
2013-04-27 04:17:34 +00:00
|
|
|
|
|
|
|
# Package build options
|
2014-02-07 04:25:04 +00:00
|
|
|
build_options="broadway colord cups gir wayland x11"
|
2013-04-27 04:17:34 +00:00
|
|
|
desc_option_broadway="Enable support for the HTML5 Broadway backend"
|
|
|
|
|
|
|
|
# Enable all options by default.
|
2014-02-07 04:25:04 +00:00
|
|
|
build_options_default="colord cups broadway wayland x11"
|
|
|
|
|
|
|
|
# Enable gir only for native builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default+=" gir"
|
|
|
|
fi
|
2013-04-27 04:17:34 +00:00
|
|
|
|
2014-02-07 04:25:04 +00:00
|
|
|
pre_configure() {
|
2014-12-13 11:14:31 +00:00
|
|
|
sed -i 's,pkg-config,/usr/bin/pkg-config,' autogen.sh
|
2014-09-25 14:36:48 +00:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2014-02-07 04:25:04 +00:00
|
|
|
}
|
2011-12-06 10:51:39 +00:00
|
|
|
post_install() {
|
|
|
|
rm -f ${DESTDIR}/usr/share/man/man1/gtk-update-icon-cache.1
|
|
|
|
}
|
2013-04-12 13:11:12 +00:00
|
|
|
|
|
|
|
gtk+3-devel_package() {
|
2014-09-25 14:36:48 +00:00
|
|
|
depends="${makedepends} gtk+3>=${version}_${revision}"
|
2013-04-27 04:17:34 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 13:11:12 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-08-31 06:51:14 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-27 04:17:34 +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+3-demo_package() {
|
2013-04-27 04:17:34 +00:00
|
|
|
short_desc+=" - demonstration application"
|
2013-04-12 13:11:12 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/gtk3-demo
|
|
|
|
vmove usr/bin/gtk3-widget-factory
|
|
|
|
vmove usr/bin/gtk3-demo-application
|
2014-09-25 15:45:24 +00:00
|
|
|
vmove usr/share/man/man1/gtk3-widget-factory.1
|
2014-05-18 11:47:42 +00:00
|
|
|
vmove usr/share/gtk-3.0/gtkbuilder.rng
|
2014-06-04 10:49:17 +00:00
|
|
|
vmove usr/share/glib-2.0/schemas/org.gtk.Demo.gschema.xml
|
|
|
|
vmove usr/share/glib-2.0/schemas/org.gtk.exampleapp.gschema.xml
|
2014-09-25 15:45:24 +00:00
|
|
|
vmove usr/share/applications/gtk3-widget-factory.desktop
|
|
|
|
vmove usr/share/applications/gtk3-demo.desktop
|
2014-06-04 10:49:17 +00:00
|
|
|
vmove usr/share/icons
|
2013-04-12 13:11:12 +00:00
|
|
|
}
|
|
|
|
}
|