3 # Enable streaming related options if gstreamer is installed.
4 kiss list gst-plugins-base
&& streaming
=ON
6 # Enable the use of openjpeg if the package is installed.
7 kiss list openjpeg2
&& jpeg
=ON
9 # Enable WEB_CRYPTO if libtasn1 is installed.
10 kiss list libtasn1
&& tasn
=ON
12 # Remove gettext requirement.
13 sed -i 's/ngettext/printf/g' Tools
/MiniBrowser
/gtk
/BrowserDownloadsBar.c
14 sed -i '/po_files \*\.po/d' Source
/WebCore
/platform
/gtk
/po
/CMakeLists.txt
15 sed -i '/^GETTEXT_C/d' Source
/WebCore
/platform
/gtk
/po
/CMakeLists.txt
18 sed -i '/LC_ALL/d' Source
/JavaScriptCore
/jsc.cpp
19 sed -i '/WTFLogAlways/d' Source
/JavaScriptCore
/jsc.cpp
23 # Reduce memory usage.
24 export LDFLAGS
="$LDFLAGS -Wl,--no-keep-memory"
27 -DCMAKE_BUILD_TYPE=Release \
28 -DCMAKE_INSTALL_PREFIX=/usr \
29 -DCMAKE_INSTALL_LIBEXECDIR=/usr
/lib \
30 -DLIB_INSTALL_DIR=/usr
/lib \
32 -DCMAKE_SKIP_RPATH=ON \
33 -DENABLE_BUBBLEWRAP_SANDBOX=OFF \
34 -DENABLE_SAMPLING_PROFILER=OFF \
35 -DENABLE_GAMEPAD=OFF \
36 -DENABLE_GEOLOCATION=OFF \
38 -DENABLE_INTROSPECTION=OFF \
39 -DENABLE_MINIBROWSER=OFF \
40 -DENABLE_SPELLCHECK=OFF \
41 -DUSE_GSTREAMER_GL=OFF \
45 -DUSE_OPENJPEG=${jpeg:-OFF} \
49 -DUSE_WPE_RENDERER=OFF \
50 -DENABLE_WEB_CRYPTO=${tasn:-OFF} \
51 -DENABLE_VIDEO=${streaming:-OFF} \
52 -DENABLE_WEB_AUDIO=${streaming:-OFF} \