[WPE] Update WPEBackend in flatpak
[WebKit-https.git] / Tools / flatpak / org.webkit.WebKit.yaml
1 app-id: %(PORTNAME)s
2 runtime: org.gnome.Platform
3 runtime-version: "3.28"
4 # Control the exact version of the Sdk/Runtime that is being used.
5 sdk-hash: cea71fe86d6961b4fe58046170f8dc8f8d4d04141ddf211e7cc6db44a18a0c49
6 runtime-hash: 9785cf7dc62290d76eef4bf0f5d25240fc5bb3d73128c25e95c4e4cb90bb3560
7 sdk: org.gnome.Sdk
8 command: %(COMMAND)s
9 finish-args:
10   # Basically no sandboxing, the goal here is to make it flexible
11   # for developers, not really to isolate (openning all devices
12   # to allow acces video cameras until we have a portal at least).
13   - --share=ipc
14   - --socket=x11
15   - --socket=wayland
16   - --device=all
17   - --share=network
18   - --socket=pulseaudio
19   - --system-talk-name=org.freedesktop.GeoClue2
20   - --filesystem=host
21   - --socket=system-bus
22   - --talk-name=org.freedesktop.Flatpak
23   - --env=GST_PRESET_PATH=/app/share/gstreamer-1.0/presets/
24 build-options:
25   cflags: -O2 -g
26   cxxflags: -O2 -g
27   strip: false
28   no-debuginfo: true
29 modules:
30   # http and dependencies.
31   - name: apr
32     sources:
33       - type: archive
34         url: https://www.apache.org/dist/apr/apr-1.6.3.tar.bz2
35         sha256: 131f06d16d7aabd097fa992a33eec2b6af3962f93e6d570a9bd4d85e95993172
36   - name: apr-util
37     sources:
38       - type: archive
39         url: https://www.apache.org/dist/apr/apr-util-1.6.1.tar.bz2
40         sha512: "40eff8a37c0634f7fdddd6ca5e596b38de15fd10767a34c30bbe49c632816e8f3e1e230678034f578dd5816a94f246fb5dfdf48d644829af13bf28de3225205d"
41     config-opts:
42       - --with-apr=/app/bin/apr-1-config
43   - name: httpd
44     sources:
45       - type: git
46         url: https://github.com/apache/httpd.git
47         branch: 2.4.33
48       - type : file
49         path : files/httpd-autogen.sh
50         dest-filename : autogen.sh
51       # The version embedded in the sandbox doesn't have a working pcre-config
52       - type: patch
53         path: patches/httpd-0001-configure-use-pkg-config-for-PCRE-detection.patch
54     config-opts:
55       - --enable-mpms-shared=all
56       - --enable-modules=all
57       - --with-apr=/app/bin/apr-1-config
58       - --with-apr-util=/app/bin/apu-1-config
59       - --with-pcre=/app
60       - --enable-authnz-fcgi
61       - --enable-cgi
62       - --enable-cgid
63   - name: php
64     sources:
65       - type: archive
66         url: https://php.net/distributions/php-7.2.6.tar.xz
67         sha512: da86b1ff2df3b9e2d46e59a80296b940d81132975b621bdec9602f8b4c8d91a3fdcd4ffd7cb982d63d3ec974b3a12a7854e42a73b7f2cc8eefade14335aa7c71
68     config-opts:
69       - --disable-xml
70       - --disable-dom
71       - --disable-libxml
72       - --disable-simplexml
73       - --disable-xmlreader
74       - --disable-xmlwriter
75       - --without-pear
76       - --with-apxs2
77       - --with-zlib
78       - --with-libzip
79       - --enable-sockets=shared
80   - name: libevent
81     sources:
82       - type: git
83         url: https://github.com/libevent/libevent.git
84         branch: e7ff4ef # 2.1.8
85     config-opts:
86       - --disable-libevent-regress
87
88   # Requirement for flatpkutils
89   - name: python3-pyaml
90     buildsystem: simple
91     build-commands:
92     - pip3 install --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} pyaml
93     sources:
94     - type: file
95       url: https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz
96       sha256: 592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab
97     - type: file
98       url: https://files.pythonhosted.org/packages/9e/17/1d4ed6e1a4c0918a0357dfa2fdbe26bf63f6e616013c04a14bce9fd33e40/pyaml-17.12.1.tar.gz
99       sha256: 66623c52f34d83a2c0fc963e08e8b9d0c13d88404e3b43b1852ef71eda19afa3
100
101   - name: python2-pyaml
102     buildsystem: simple
103     build-commands:
104     - pip2 install --no-index --find-links="file://${PWD}" --target=/app/lib/python2.7/site-packages/ pyaml
105     sources:
106     - type: file
107       url: https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz
108       sha256: 592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab
109     - type: file
110       url: https://files.pythonhosted.org/packages/9e/17/1d4ed6e1a4c0918a0357dfa2fdbe26bf63f6e616013c04a14bce9fd33e40/pyaml-17.12.1.tar.gz
111       sha256: 66623c52f34d83a2c0fc963e08e8b9d0c13d88404e3b43b1852ef71eda19afa3
112
113   # GStreamer modules
114   - name: libvpx
115     no-autogen: true
116     sources:
117       - type: git
118         url: https://chromium.googlesource.com/webm/libvpx
119         branch: v1.7.0
120     config-opts:
121       - --enable-pic
122       - --as=yasm
123       - --disable-unit-tests
124       - --size-limit=16384x16384
125       - --enable-postproc
126       - --enable-multi-res-encoding
127       - --enable-temporal-denoising
128       - --enable-vp9-temporal-denoising
129       - --enable-vp9-postproc
130       - --enable-shared
131   - name: gstreamer
132     buildsystem: meson
133     sources:
134       - type: git
135         url: https://anongit.freedesktop.org/git/gstreamer/gstreamer
136         branch: 1.14.1
137     config-opts:
138       - -Ddisable_gtkdoc=true
139   - name: gst-plugins-base
140     buildsystem: meson
141     sources:
142       - type: git
143         url: https://anongit.freedesktop.org/git/gstreamer/gst-plugins-base
144         branch: 1.14.1
145     config-opts:
146       - -Ddisable_gtkdoc=true
147   - name: gst-plugins-good
148     buildsystem: meson
149     sources:
150       - type: git
151         url: https://anongit.freedesktop.org/git/gstreamer/gst-plugins-good
152         branch: 1.14.1
153       - type: patch
154         path: ../gstreamer/patches/gst-plugins-good-0002-qtdemux-add-context-for-a-preferred-protection.patch
155       - type: patch
156         path: ../gstreamer/patches/gst-plugins-good-0003-qtdemux-also-push-buffers-without-encryption-info-in.patch
157       - type: patch
158         path: ../gstreamer/patches/gst-plugins-good-0001-qtdemux-Do-not-run-the-preferred-decryptor-context-q.patch
159       - type: patch
160         path: ../gstreamer/patches/gst-plugins-good-0002-qtdemux-Do-not-unref-a-NULL-stream_tags.patch
161       - type: patch
162         path: ../gstreamer/patches/gst-plugins-good-0003-qtdemux-Clarify-field-name-about-stream-encryption-s.patch
163     config-opts:
164       - -Ddisable_gtkdoc=true
165   - name: gst-plugins-ugly
166     buildsystem: meson
167     sources:
168       - type: git
169         url: https://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly
170         branch: 1.14.1
171     config-opts:
172       - -Ddisable_gtkdoc=true
173   - name: gst-plugins-bad
174     buildsystem: meson
175     sources:
176       - type: git
177         url: https://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad
178         branch: 1.14.1
179     config-opts:
180       - -Ddisable_gtkdoc=true
181   - name: gst-libav
182     buildsystem: meson
183     sources:
184       - type: archive
185         url: https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.14.1.tar.xz
186         sha256: eff80a02d2f2fb9f34b67e9a26e9954d3218c7aa18e863f2a47805fa7066029d
187     config-opts:
188       - -Ddisable_gtkdoc=true
189
190   - name: libgcrypt # Speedup libgrcypt
191     sources:
192       - type: git
193         url: https://dev.gnupg.org/source/libgcrypt.git
194         branch: libgcrypt-1.7.6
195       - type: patch
196         path: patches/libgcrypt-0001-Use-pkg-config-to-detect-gpg-error.patch
197       - type: patch
198         path: ../gtk/patches/libgcrypt-use-only-dev-urandom-for-testing.patch
199     config-opts:
200       - --disable-doc
201
202   - name: perl-cgi-pm
203     buildsystem: simple
204     build-commands:
205       - perl Makefile.PL PREFIX=/app LIB=/app/lib/perl/
206       - make install
207     sources:
208       - type: archive
209         url: https://cpan.metacpan.org/authors/id/L/LE/LEEJO/CGI-4.38.tar.gz
210         sha256: 8c58f4a529bb92a914b22b7e64c5e31185c9854a4070a6dfad44fe5cc248e7d4
211
212   - name: python2-virtualenv
213     buildsystem: simple
214     build-commands:
215     - pip2 install --no-index --find-links="file://${PWD}" --target=/app/lib/python2.7/site-packages/ virtualenv
216     - ln -s /app/lib/python2.7/site-packages/virtualenv.py /app/bin/virtualenv
217     - chmod +x /app/bin/virtualenv
218     sources:
219     - type: file
220       url: https://files.pythonhosted.org/packages/33/bc/fa0b5347139cd9564f0d44ebd2b147ac97c36b2403943dbee8a25fd74012/virtualenv-16.0.0.tar.gz
221       sha256: ca07b4c0b54e14a91af9f34d0919790b016923d157afda5efdde55c96718f752
222
223
224   # Port specific components.
225   - %(PORTNAME)s.yaml