From 5d3bc8d1f50856c8a88216c0bbc41d9003b9eef7 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Thu, 8 Apr 2021 19:28:02 +0200 Subject: libraries/webkit2gtk: Updated for version 2.32.0, switch to ninja. Added the dependencies bubblewrap, enchant2, gst-plugins-bad, libseccomp, wpebackend-fdo and xdg-dbus-proxy Signed-off-by: Matteo Bernardini --- libraries/webkit2gtk/webkit2gtk.SlackBuild | 32 ++++++++++++++++++++---------- libraries/webkit2gtk/webkit2gtk.info | 8 ++++---- 2 files changed, 25 insertions(+), 15 deletions(-) (limited to 'libraries/webkit2gtk') diff --git a/libraries/webkit2gtk/webkit2gtk.SlackBuild b/libraries/webkit2gtk/webkit2gtk.SlackBuild index d54d9bfc36..76f9eaa4cf 100644 --- a/libraries/webkit2gtk/webkit2gtk.SlackBuild +++ b/libraries/webkit2gtk/webkit2gtk.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=webkit2gtk SRCNAM=webkitgtk -VERSION=${VERSION:-2.20.5} +VERSION=${VERSION:-2.32.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -55,10 +55,6 @@ else LIBDIRSUFFIX="" fi -# This is needed to fix build issue on single make job -# Thanks to ponce for investigating this issue. -export MAKEFLAGS=${MAKEFLAGS:--j2} - set -eu rm -rf $PKG @@ -77,16 +73,30 @@ find -L . \ mkdir -p build cd build cmake -DPORT=GTK \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \ + -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \ -DLIBEXEC_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX}/webkit2gtk-4.0 \ - -DENABLE_MEDIA_SOURCE=NO \ - -DUSE_GSTREAMER_GL=NO \ + -DENABLE_GAMEPAD=OFF \ + -DENABLE_MINIBROWSER=ON \ + -DUSE_SYSTEMD=OFF \ + -Wno-dev \ + -G Ninja \ .. -make -make install DESTDIR=$PKG + +# The build might crash on high specs machines because ninja eat all +# of the resources, so let's try to limit it to half the available ones +ninja -j$(expr $(nproc) / 2) +DESTDIR=$PKG ninja -j1 install + +mkdir -p $PKG/usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0 +install -m 0644 ../Documentation/webkit2gtk-4.0/html/* \ + $PKG/usr/share/gtk-doc/html/webkit2gtk-4.0 +install -m 0644 ../Documentation/webkitdomgtk-4.0/html/* \ + $PKG/usr/share/gtk-doc/html/webkitdomgtk-4.0 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a ../NEWS $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/libraries/webkit2gtk/webkit2gtk.info b/libraries/webkit2gtk/webkit2gtk.info index 8c4164b2e7..9c774b5b18 100644 --- a/libraries/webkit2gtk/webkit2gtk.info +++ b/libraries/webkit2gtk/webkit2gtk.info @@ -1,10 +1,10 @@ PRGNAM="webkit2gtk" -VERSION="2.20.5" +VERSION="2.32.0" HOMEPAGE="https://www.webkitgtk.org/" -DOWNLOAD="https://www.webkitgtk.org/releases/webkitgtk-2.20.5.tar.xz" -MD5SUM="72a05f6a4dc1c78b079590a8fd280401" +DOWNLOAD="https://www.webkitgtk.org/releases/webkitgtk-2.32.0.tar.xz" +MD5SUM="a24a9441ad01617be9ac95097cd31e08" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="geoclue2 hyphen libwebp woff2" +REQUIRES="bubblewrap enchant2 geoclue2 gst-plugins-bad libseccomp wpebackend-fdo xdg-dbus-proxy" MAINTAINER="Willy Sudiarto Raharjo" EMAIL="willysr@slackbuilds.org" -- cgit v1.2.3-65-gdbad