summaryrefslogtreecommitdiffstats
path: root/libraries/webkit2gtk/webkit2gtk.SlackBuild
diff options
context:
space:
mode:
author Matteo Bernardini2021-04-08 19:28:02 +0200
committer Robby Workman2021-04-18 07:08:25 +0200
commit5d3bc8d1f50856c8a88216c0bbc41d9003b9eef7 (patch)
tree9368ed778027f4de4ed9f1f96e2f158d4259e344 /libraries/webkit2gtk/webkit2gtk.SlackBuild
parent4c40e21dc4a3cc6466b64071420b1465115582c3 (diff)
downloadslackbuilds-5d3bc8d1f50856c8a88216c0bbc41d9003b9eef7.tar.gz
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 <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/webkit2gtk/webkit2gtk.SlackBuild')
-rw-r--r--libraries/webkit2gtk/webkit2gtk.SlackBuild32
1 files changed, 21 insertions, 11 deletions
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