diff options
Diffstat (limited to 'libraries/webkit2gtk/webkit2gtk.SlackBuild')
-rw-r--r-- | libraries/webkit2gtk/webkit2gtk.SlackBuild | 32 |
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 |