diff options
-rwxr-xr-x | extra/webkit2gtk/build | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/extra/webkit2gtk/build b/extra/webkit2gtk/build index ffbbe15f..d00664e3 100755 --- a/extra/webkit2gtk/build +++ b/extra/webkit2gtk/build @@ -6,12 +6,6 @@ sed_i() { cat _ > "$file"; rm -f _ } -# Enable the use of openjpeg if the package is installed. -cpt-list openjpeg2 >/dev/null 2>&1 && jpeg=ON - -# Enable webcrypto if libtasn1 is installed. -cpt-list libtasn1 >/dev/null 2>&1 && libtasn=ON - # 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 @@ -41,14 +35,14 @@ cmake -B build \ -DENABLE_MINIBROWSER=OFF \ -DENABLE_SPELLCHECK=OFF \ -DUSE_LIBHYPHEN=OFF \ - -DUSE_LIBNOTIFY=OFF \ + -DUSE_LIBNOTIFY="$(cpt l -C libnotify ON OFF)" \ -DUSE_LIBSECRET=OFF \ -DUSE_SYSTEMD=OFF \ - -DUSE_OPENJPEG=${jpeg:-OFF} \ + -DUSE_OPENJPEG="$(cpt l -C openjpeg2 ON OFF)" \ -DUSE_WOFF2=OFF \ -DUSE_WPE_RENDERER=OFF \ - -DENABLE_WEB_CRYPTO=${libtasn:-OFF} \ - -DENABLE_WAYLAND_TARGET=OFF \ + -DENABLE_WEB_CRYPTO="$(cpt l -C libtasn1 ON OFF)" \ + -DENABLE_WAYLAND_TARGET="$(cpt l -C wayland ON OFF)" \ -DENABLE_GAMEPAD=OFF \ -Wno-dev |