2011-02-14 13:08:46 +00:00
|
|
|
# Template build file for 'gtk+3'.
|
|
|
|
pkgname=gtk+3
|
2014-05-13 05:55:22 +00:00
|
|
|
version=3.12.2
|
2014-05-18 11:47:42 +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-02-07 04:25:04 +00:00
|
|
|
configure_args="--disable-schemas-compile --enable-gtk2-dependency"
|
2011-02-14 13:08:46 +00:00
|
|
|
short_desc="The GTK+ toolkit (v3)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
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"
|
2014-05-13 05:55:22 +00:00
|
|
|
checksum=61d74eea74231b1ea4b53084a9d6fc9917ab0e1d71b69d92cbf60a4b4fb385d0
|
2011-02-14 13:08:46 +00:00
|
|
|
|
2014-03-27 09:12:40 +00:00
|
|
|
hostmakedepends="libtool pkg-config glib-devel>=2.40 gtk+-devel"
|
|
|
|
makedepends="libglib-devel>=2.40 atk-devel>=2.12 at-spi2-atk-devel>=2.12
|
2014-02-07 04:25:04 +00:00
|
|
|
libpng-devel fontconfig-devel cairo-devel pango-devel>=1.36
|
|
|
|
gdk-pixbuf-devel>=2.30 gtk+-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="gtk-update-icon-cache shared-mime-info glib>=2.38 atk>=2.10 dbus-x11"
|
|
|
|
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"
|
2014-02-07 04:25:04 +00:00
|
|
|
desc_option_colord="Enable support for colord"
|
|
|
|
desc_option_cups="Enable support for the cups print backend"
|
2013-04-27 04:17:34 +00:00
|
|
|
desc_option_gir="Enable support for gobject introspection data"
|
|
|
|
desc_option_wayland="Enable support for the Wayland backend"
|
|
|
|
desc_option_x11="Enable support for the X11 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
|
|
|
|
|
|
|
if [ "$build_option_broadway" ]; then
|
|
|
|
configure_args+=" --enable-broadway-backend"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-broadway-backend"
|
|
|
|
fi
|
|
|
|
|
2014-02-07 04:25:04 +00:00
|
|
|
if [ "$build_option_colord" ]; then
|
|
|
|
configure_args+=" --enable-colord"
|
2014-05-09 09:59:18 +00:00
|
|
|
makedepends+=" colord-devel>=1.1.7"
|
2014-02-07 04:25:04 +00:00
|
|
|
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
|
|
|
|
|
2013-04-27 04:17:34 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_wayland" ]; then
|
2014-02-07 04:25:04 +00:00
|
|
|
hostmakedepends+=" wayland-devel"
|
2013-04-27 04:20:56 +00:00
|
|
|
makedepends+=" libxkbcommon-devel wayland-devel"
|
2013-04-27 04:17:34 +00:00
|
|
|
configure_args+=" --enable-wayland-backend"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-wayland-backend"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_x11" ]; then
|
|
|
|
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 16:11:34 +00:00
|
|
|
|
2014-02-07 04:25:04 +00:00
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
|
|
|
|
2011-12-06 10:51:39 +00:00
|
|
|
post_install() {
|
|
|
|
rm -f ${DESTDIR}/usr/share/man/man1/gtk-update-icon-cache.1
|
2013-10-12 07:14:27 +00:00
|
|
|
# Provide a default (icon)theme.
|
|
|
|
vinstall ${FILESDIR}/settings.ini 644 usr/share/gtk-3.0
|
2011-12-06 10:51:39 +00:00
|
|
|
}
|
2013-04-12 13:11:12 +00:00
|
|
|
|
|
|
|
gtk+3-devel_package() {
|
2014-03-27 09:12:40 +00:00
|
|
|
depends="libglib-devel>=2.40 atk-devel>=2.12 cairo-devel gdk-pixbuf-devel>=2.30
|
|
|
|
pango-devel>=1.36 at-spi2-atk-devel>=2.12 gtk+3>=${version}_${revision}"
|
2013-04-27 04:17:34 +00:00
|
|
|
if [ "$build_option_x11" ]; then
|
2014-02-08 08:51:03 +00:00
|
|
|
depends+=" libXcomposite-devel libXcursor-devel libXrandr-devel libXi-devel libXinerama-devel libXdamage-devel"
|
2013-04-27 04:17:34 +00:00
|
|
|
fi
|
|
|
|
if [ "$build_option_wayland" ]; then
|
2013-04-30 13:41:18 +00:00
|
|
|
depends+=" libxkbcommon-devel wayland-devel"
|
2013-04-27 04:17:34 +00:00
|
|
|
fi
|
|
|
|
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-05-18 11:47:42 +00:00
|
|
|
vmove usr/share/gtk-3.0/gtkbuilder.rng
|
2013-04-12 13:11:12 +00:00
|
|
|
}
|
|
|
|
}
|