aboutsummaryrefslogtreecommitdiff
path: root/extra/webkit2gtk/build
blob: 68ce922e322020562e55a6b53cd5b969522f339d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh -e

patch -p1 < fix-musl.patch

# Remove gettext requirement.
sed 's/ngettext/printf/g' Tools/MiniBrowser/gtk/BrowserDownloadsBar.c > .browser.c
mv .browser.c Tools/MiniBrowser/gtk/BrowserDownloadsBar.c
sed '/po_files *.po/d'    Source/WebCore/platform/gtk/po/CMakeLists.txt > .cmake.bak
mv .cmake.bak Source/WebCore/platform/gtk/po/CMakeLists.txt
sed '/^GETTEXT_C/d'       Source/WebCore/platform/gtk/po/CMakeLists.txt > .cmake.bak
mv .cmake.bak 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