aboutsummaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-04-29 18:11:48 +0300
committerCem Keylan <cem@ckyln.com>2020-04-29 18:11:48 +0300
commitff6292bbe4ea269cff500a62648a201b1cab61af (patch)
treec47e3d7507d6974204196619c9805c325916a299 /extra/webkit2gtk/build
parentbf752fd5c047bbe0934f282addbc98e2ddc84547 (diff)
downloadrepository-ff6292bbe4ea269cff500a62648a201b1cab61af.tar.gz
webkit2gtk: add options for gstreamer and openjpeg
Diffstat (limited to 'extra/webkit2gtk/build')
-rwxr-xr-xextra/webkit2gtk/build15
1 files changed, 12 insertions, 3 deletions
diff --git a/extra/webkit2gtk/build b/extra/webkit2gtk/build
index aac25cc1..758922a8 100755
--- a/extra/webkit2gtk/build
+++ b/extra/webkit2gtk/build
@@ -1,5 +1,13 @@
#!/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.
@@ -24,16 +32,17 @@ cmake -B build \
-DENABLE_MINIBROWSER=OFF \
-DENABLE_OPENGL=OFF \
-DENABLE_SPELLCHECK=OFF \
- -DENABLE_VIDEO=OFF \
+ -DENABLE_VIDEO=${streaming:-OFF} \
-DENABLE_WEBGL=OFF \
- -DENABLE_WEB_AUDIO=OFF \
+ -DENABLE_WEB_AUDIO=${streaming:-OFF} \
-DUSE_LIBHYPHEN=OFF \
-DUSE_LIBNOTIFY=OFF \
-DUSE_LIBSECRET=OFF \
- -DUSE_OPENJPEG=OFF \
+ -DUSE_OPENJPEG=${jpeg:-OFF} \
-DUSE_WOFF2=OFF \
-DUSE_WPE_RENDERER=OFF \
-DENABLE_WEB_CRYPTO=OFF \
+ -DENABLE_MEDIASOURCE=${streaming:-OFF} \
-Wno-dev
cmake --build build