void-packages/srcpkgs/webkitgtk/template

71 lines
2 KiB
Text
Raw Normal View History

# Template file for 'webkitgtk'
pkgname=webkitgtk
2014-11-03 14:49:42 +00:00
version=2.4.7
revision=1
2013-08-12 08:51:51 +00:00
build_style=gnu-configure
2014-10-15 13:18:01 +00:00
configure_args="--disable-gtk-doc --with-gtk=3.0 --disable-schemas-compile --enable-accelerated-compositing"
short_desc="GTK+3 port of the WebKit browser engine"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://webkitgtk.org/"
2014-07-12 07:38:50 +00:00
license="LGPL-2.1, 2-clause-BSD"
distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
2014-11-03 14:49:42 +00:00
checksum=f5cf26e39abf1d6b2d25f1398348fef6bbe6c03fb4f99e11c569091c05197d38
2014-10-15 09:51:47 +00:00
# ETOOHUGE
2014-11-16 10:53:12 +00:00
nodebug=1
2014-10-15 09:51:47 +00:00
2014-10-15 10:02:53 +00:00
hostmakedepends="automake libtool perl python pkg-config intltool gperf flex
2014-10-15 13:18:01 +00:00
ruby glib-devel geoclue2 gtk-doc"
2013-11-15 07:38:32 +00:00
makedepends="
2014-05-27 07:37:43 +00:00
at-spi2-core-devel libjpeg-turbo-devel libpng-devel>=1.6 sqlite-devel
harfbuzz-devel>=0.9.19 gst-plugins-base1-devel libsoup-devel libxslt-devel
icu-devel>=54 enchant-devel dbus-glib-devel libwebp-devel>=0.4.0
2014-05-27 07:37:43 +00:00
gtk+-devel gtk+3-devel libgudev-devel libsecret-devel geoclue2"
# Package build options
2014-05-27 07:37:43 +00:00
build_options="gir wayland x11"
# Disable gir for cross builds.
2014-05-27 07:37:43 +00:00
build_options_default="wayland x11"
if [ -z "$CROSS_BUILD" ]; then
2014-05-27 07:37:43 +00:00
build_options_default+=" gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
hostmakedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
2014-05-27 07:37:43 +00:00
if [ "$build_option_wayland" ]; then
configure_args+=" --enable-wayland-target"
makedepends+=" MesaLib-devel libxkbcommon-devel wayland-devel"
else
configure_args+=" --disable-wayland-target"
fi
if [ "$build_option_x11" ]; then
configure_args+=" --enable-x11-target"
makedepends+=" libXt-devel"
else
configure_args+=" --disable-x11-target"
fi
2014-05-12 19:17:26 +00:00
pre_configure() {
2014-10-15 10:02:53 +00:00
autoreconf -fi
2014-05-12 19:17:26 +00:00
}
webkitgtk-devel_package() {
2014-03-27 13:45:08 +00:00
depends="gtk+3-devel libsoup-devel ${sourcepkg}>=${version}_${revision}"
2013-04-30 09:41:43 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
2013-08-12 08:51:51 +00:00
vmove "usr/lib/*.so"
2014-11-03 14:49:42 +00:00
vmove usr/share/gtk-doc
}
}