79 lines
2.3 KiB
Bash
79 lines
2.3 KiB
Bash
# Template file for 'webkit2gtk'
|
|
pkgname=webkit2gtk
|
|
version=2.12.2
|
|
revision=2
|
|
wrksrc="webkitgtk-$version"
|
|
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 <gottox@voidlinux.eu>"
|
|
homepage="http://webkitgtk.org/"
|
|
license="LGPL-2.1, 2-clause-BSD"
|
|
distfiles="${homepage}/releases/webkitgtk-${version}.tar.xz"
|
|
checksum=9dc49b908b1c37da739703e1402a7f07c4ea9093b8ecfb34f20e8f74e328f124
|
|
|
|
# ETOOHUGE
|
|
nodebug=1
|
|
|
|
hostmakedepends="perl python pkg-config intltool gperf flex
|
|
ruby glib-devel geoclue2 cmake"
|
|
makedepends="
|
|
at-spi2-core-devel libjpeg-turbo-devel libpng-devel sqlite-devel
|
|
harfbuzz-devel gst-plugins-base1-devel libsoup-devel libxslt-devel
|
|
icu-devel enchant-devel dbus-glib-devel libwebp-devel
|
|
gtk+-devel gtk+3-devel libgudev-devel libsecret-devel ruby-devel geoclue2
|
|
libnotify-devel hyphen-devel"
|
|
|
|
# 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"
|
|
else
|
|
# Make cmake detect Ruby headers in cross base
|
|
configure_args+=" -DRUBY_CONFIG_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include/ruby-2.2.0"
|
|
# Fix non-working target CPU detection
|
|
configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=${XBPS_TARGET_MACHINE%-musl}"
|
|
fi
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
configure_args+=" --enable-introspection"
|
|
hostmakedepends+=" gobject-introspection"
|
|
else
|
|
configure_args+=" --disable-introspection"
|
|
configure_args+=" -DENABLE_INTROSPECTION=0"
|
|
fi
|
|
|
|
if [ "$build_option_wayland" ]; then
|
|
configure_args+=" --enable-wayland-target"
|
|
hostmakedepends+=" wayland-devel"
|
|
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
|
|
|
|
post_install() {
|
|
vlicense Source/WebKit/LICENSE
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|