aboutsummaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-23 17:50:40 +0300
committerCem Keylan <cem@ckyln.com>2020-01-23 17:50:40 +0300
commit4f9396bd0c6a418d361241d229227edf8b5a3187 (patch)
tree444f4638921743cdeecfdf94fe2f392828ab2d48 /extra/webkit2gtk/build
parent6855e0e636ea15acb57744a85623ef7dd382e72a (diff)
downloadrepository-4f9396bd0c6a418d361241d229227edf8b5a3187.tar.gz
webkit2gtk: update and move to extra
Diffstat (limited to 'extra/webkit2gtk/build')
-rwxr-xr-xextra/webkit2gtk/build39
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/webkit2gtk/build b/extra/webkit2gtk/build
new file mode 100755
index 00000000..05ba8c84
--- /dev/null
+++ b/extra/webkit2gtk/build
@@ -0,0 +1,39 @@
+#!/bin/sh -e
+
+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_GEOLOCATION=OFF \
+ -DENABLE_GLES2=ON \
+ -DENABLE_INTL=OFF \
+ -DENABLE_INTROSPECTION=OFF \
+ -DENABLE_MINIBROWSER=OFF \
+ -DENABLE_OPENGL=OFF \
+ -DENABLE_SPELLCHECK=OFF \
+ -DENABLE_VIDEO=OFF \
+ -DENABLE_WEBGL=OFF \
+ -DENABLE_WEB_AUDIO=OFF \
+ -DUSE_LIBHYPHEN=OFF \
+ -DUSE_LIBNOTIFY=OFF \
+ -DUSE_LIBSECRET=OFF \
+ -DUSE_OPENJPEG=OFF \
+ -DUSE_WOFF2=OFF \
+ -DUSE_WPE_RENDERER=OFF \
+ -DENABLE_WEB_CRYPTO=OFF \
+ -Wno-dev
+
+cmake --build build
+cmake --install build