diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-18 16:29:44 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-18 16:29:44 +0300 |
commit | fc41645ae378cf440f9855785420af7254bf6060 (patch) | |
tree | c2c08fb7c9b40eccb9a7e8d86d43ac08eb0e53d2 /testing/webkit2gtk/build | |
parent | 8eb131f22fd26d8cd9a8b4494be7d5565a0ff913 (diff) | |
download | repository-fc41645ae378cf440f9855785420af7254bf6060.tar.gz |
webkit2gtk: add new package at 2.29.1
Diffstat (limited to 'testing/webkit2gtk/build')
-rwxr-xr-x | testing/webkit2gtk/build | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/webkit2gtk/build b/testing/webkit2gtk/build new file mode 100755 index 00000000..ca07b196 --- /dev/null +++ b/testing/webkit2gtk/build @@ -0,0 +1,50 @@ +#!/bin/sh -e + +# Enable streaming related options if gstreamer +# is installed. +kiss l gst-plugins-base && streaming=ON + +# Enable the use of openjpeg if the package is +# installed. +kiss l openjpeg2 && jpeg=ON + +patch -p1 < fix-musl.patch + +# Remove gettext requirement. +sed -i 's/ngettext/printf/g' Tools/MiniBrowser/gtk/BrowserDownloadsBar.c +sed -i '/po_files \*\.po/d' Source/WebCore/platform/gtk/po/CMakeLists.txt +sed -i '/^GETTEXT_C/d' Source/WebCore/platform/gtk/po/CMakeLists.txt + +export DESTDIR="$1" + +cmake -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=/usr/lib \ + -DPORT=GTK \ + -DCMAKE_SKIP_RPATH=ON \ + -DENABLE_BUBBLEWRAP_SANDBOX=OFF \ + -DENABLE_SAMPLING_PROFILER=OFF \ + -DENABLE_GEOLOCATION=OFF \ + -DENABLE_GLES2=ON \ + -DENABLE_INTL=OFF \ + -DENABLE_INTROSPECTION=OFF \ + -DENABLE_MINIBROWSER=OFF \ + -DENABLE_OPENGL=OFF \ + -DENABLE_SPELLCHECK=OFF \ + -DENABLE_VIDEO=${streaming:-OFF} \ + -DENABLE_WEBGL=OFF \ + -DENABLE_WEB_AUDIO=${streaming:-OFF} \ + -DUSE_LIBHYPHEN=OFF \ + -DUSE_LIBNOTIFY=OFF \ + -DUSE_LIBSECRET=OFF \ + -DUSE_OPENJPEG=${jpeg:-OFF} \ + -DUSE_WOFF2=OFF \ + -DUSE_WPE_RENDERER=OFF \ + -DENABLE_WEB_CRYPTO=OFF \ + -DUSE_SYSTEMD=OFF \ + -DENABLE_MEDIASOURCE=${streaming:-OFF} \ + -Wno-dev + +cmake --build build +cmake --install build |