2014-11-10 07:30:42 +00:00
|
|
|
# Template file for 'webkit2gtk'
|
|
|
|
pkgname=webkit2gtk
|
2015-01-16 13:37:28 +00:00
|
|
|
version=2.6.5
|
2014-11-10 07:30:42 +00:00
|
|
|
revision=1
|
|
|
|
build_style=cmake
|
|
|
|
configure_args="-DPORT=GTK -DENABLE_GTKDOC=OFF -DCMAKE_LINKER=${XBPS_CROSS_TRIPLET}-gcc"
|
|
|
|
short_desc="GTK+3 port of the WebKit2 browser engine"
|
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
homepage="http://webkitgtk.org/"
|
|
|
|
license="LGPL-2.1, 2-clause-BSD"
|
|
|
|
distfiles="${homepage}/releases/webkitgtk-${version}.tar.xz"
|
2015-01-16 13:37:28 +00:00
|
|
|
checksum=b1658017cea7cc545b9e01f22af585986e21e4242825e215bc5f8e0c0dc67593
|
2015-01-13 08:06:46 +00:00
|
|
|
wrksrc="webkitgtk-$version"
|
2014-11-10 07:30:42 +00:00
|
|
|
|
|
|
|
# ETOOHUGE
|
2015-01-13 08:06:46 +00:00
|
|
|
nodebug=1
|
2014-11-10 07:30:42 +00:00
|
|
|
|
|
|
|
hostmakedepends="perl python pkg-config intltool gperf flex
|
|
|
|
ruby glib-devel geoclue2 cmake"
|
|
|
|
makedepends="
|
|
|
|
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
|
2015-01-13 08:06:46 +00:00
|
|
|
gtk+-devel gtk+3-devel libgudev-devel libsecret-devel ruby-devel geoclue2"
|
2014-11-10 07:30:42 +00:00
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="gir wayland x11"
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
build_options_default="wayland x11"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default+=" gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
hostmakedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
webkit2gtk-devel_package() {
|
|
|
|
depends="gtk+3-devel libsoup-devel ${sourcepkg}>=${version}_${revision}"
|
|
|
|
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
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|