[Flatpak] webkit-build fails due to missing GTK2 in build environment
[WebKit-https.git] / Tools / flatpak / org.webkit.GTK.yaml
1 - name: mesa
2   sources:
3     - type: archive
4       url: https://mesa.freedesktop.org/archive/mesa-18.0.3.tar.xz
5       sha256: 099d9667327a76a61741a533f95067d76ea71a656e66b91507b3c0caf1d49e30
6   config-opts:
7     - --prefix=/app/softGL
8     - --disable-dri3
9     - --enable-dri
10     - --enable-glx
11     - --enable-egl
12     - --with-egl-platforms=x11,wayland
13     - --with-dri-drivers=swrast
14     - --with-gallium-drivers=swrast
15
16 - name: webkitgtk-test-fonts
17   no-autogen: true
18   sources:
19     - type: git
20       url: https://github.com/WebKitGTK/webkitgtk-test-fonts.git
21   buildsystem: simple
22   build-commands:
23     # FIXME: Make ActivateFontWPE smarter.
24     - make install DESTDIR=/app/WebKitBuild/DependenciesGTK/Root
25
26 - name: xorg-util-macros
27   sources:
28     - type: git
29       url: https://anongit.freedesktop.org/git/xorg/util/macros.git
30       branch: util-macros-1.19.2
31
32 - name: xorg-font-util
33   sources:
34     - type: git
35       url: https://anongit.freedesktop.org/git/xorg/font/util.git
36       branch: font-util-1.3.1
37
38 - name: xkbfile
39   sources:
40     - type: git
41       branch: libxkbfile-1.0.9
42       url: https://anongit.freedesktop.org/git/xorg/lib/libxkbfile.git
43
44 - name: fontenc
45   sources:
46     - type: git
47       branch: libfontenc-1.1.3
48       url: https://anongit.freedesktop.org/git/xorg/lib/libfontenc.git
49
50 - name: xfont
51   sources:
52     - type: git
53       branch: libXfont2-2.0.3
54       url: https://anongit.freedesktop.org/git/xorg/lib/libXfont.git
55
56 - name: xvfb
57   sources:
58     - type: git
59       url: https://anongit.freedesktop.org/git/xorg/xserver.git
60       branch: xorg-server-1.19.6
61     - type: patch
62       path: patches/xvfb-0001-HACK-Avoid-compiling-a-kbm-file.patch
63     - type: patch
64       path: ../gtk/patches/xserver-remove-bogus-dependencies.patch
65     - type: patch
66       path: ../gtk/patches/xserver-search-for-DRI-drivers-at-LIBGL_DRIVERS_PATH-environ.patch
67   config-opts:
68     - --enable-xvfb
69     - --disable-xwayland
70     - --enable-xvfb
71     - --disable-xwayland
72     - --disable-xinerama
73     - --enable-glx
74     - --enable-composite
75     - --disable-xorg
76     - --disable-dmx
77     - --disable-xnest
78     - --disable-xquartz
79     - --disable-xwin
80     - --disable-xephyr
81     - --disable-xfake
82     - --disable-xfbdev
83     - --disable-install-setuid
84     - --disable-unit-tests
85     - --disable-present
86     - --enable-unix-transport
87     - --enable-tcp-transport
88     - --disable-local-transport
89     - --without-dtrace
90
91 # Required for the GTK2 plugin process
92 - name: gtk2
93   sources:
94   - type: archive
95     url: https://download.gnome.org/sources/gtk+/2.24/gtk+-2.24.32.tar.xz
96     sha256: b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e
97   - type: script
98     commands:
99       - "sed -i '1s/python$/&2/' gtk/gtk-builder-convert"
100       - "sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool"
101   config-opts:
102     - --disable-gtk-doc
103     - --disable-cups
104     - --disable-papi
105     - --enable-introspection=no
106     - --with-gdktarget=x11
107
108 # Required for run-gtk-tests
109 - name: pycairo
110   buildsystem: simple
111   build-commands:
112   - python2 setup.py install --prefix=/app
113   sources:
114   - type: archive
115     url: https://pypi.python.org/packages/ef/97/b33dc533ea6076d4ea9cbd2fe049a2b4a3df5c5b6fba9a182616f6f8d310/pycairo-1.15.4.tar.gz
116     sha256: ee4c3068c048230e5ce74bb8994a024711129bde1af1d76e3276c7acd81c4357
117   cleanup:
118   - "/include"
119   - "/lib/pkgconfig"
120
121 - name: pygobject-python2
122   build-options:
123     env:
124       PYTHON: "/usr/bin/python2"
125   sources:
126   - type: archive
127     url: https://download.gnome.org/sources/pygobject/3.28/pygobject-3.28.1.tar.xz
128     sha256: 42312b4a5015571fa0a4f2d201005da46b71c251ea2625bc95702d071c4ff895
129   cleanup:
130   - "/include"
131   - "/lib/pkgconfig"
132   - "/lib/python2.7/site-packages/gi/*.la"
133
134 - name: org.webkit.GTK
135   buildsystem: simple
136   build-commands:
137     - /app/webkit/Tools/Scripts/build-webkit --gtk --prefix=/app
138