14 |
14 |
SRC_URI="https://www.webkitgtk.org/releases/${MY_P}.tar.xz"
|
15 |
15 |
|
16 |
16 |
LICENSE="LGPL-2+ BSD"
|
17 |
|
SLOT="4/37" # soname version of libwebkit2gtk-4.0
|
|
17 |
SLOT="4.1/0" # soname version of libwebkit2gtk-4.1
|
18 |
18 |
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc x86"
|
19 |
19 |
|
20 |
20 |
IUSE="aqua avif examples gamepad gles2-only keyring +gstreamer +introspection pdf +jpeg2k +jumbo-build lcms seccomp spell systemd wayland X"
|
... | ... | |
30 |
30 |
# >=gst-plugins-opus-1.14.4-r1 for opusparse (required by MSE)
|
31 |
31 |
# TODO: gst-plugins-base[X] is only needed when build configuration ends up
|
32 |
32 |
# with GLX set, but that's a bit automagic too to fix
|
|
33 |
# Softblocking webkit-gtk-2.38:4 as we going to use webkit-2.38:4.1's WebKitDriver binary
|
33 |
34 |
RDEPEND="
|
34 |
35 |
>=x11-libs/cairo-1.16.0[X?]
|
35 |
36 |
>=media-libs/fontconfig-2.13.0:1.0
|
... | ... | |
40 |
41 |
>=dev-libs/icu-61.2:=
|
41 |
42 |
media-libs/libjpeg-turbo:0=
|
42 |
43 |
>=media-libs/libepoxy-1.4.0
|
43 |
|
>=net-libs/libsoup-2.54:2.4[introspection?]
|
|
44 |
>=net-libs/libsoup-3.0.8:3.0[introspection?]
|
44 |
45 |
>=dev-libs/libxml2-2.8.0:2
|
45 |
46 |
>=media-libs/libpng-1.4:0=
|
46 |
47 |
dev-db/sqlite:3
|
... | ... | |
94 |
95 |
|
95 |
96 |
systemd? ( sys-apps/systemd:= )
|
96 |
97 |
gamepad? ( >=dev-libs/libmanette-0.2.4 )
|
|
98 |
!<net-libs/webkit-gtk-2.38:4
|
97 |
99 |
"
|
98 |
100 |
DEPEND="${RDEPEND}"
|
99 |
101 |
# Need real bison, not yacc
|
... | ... | |
216 |
218 |
-DENABLE_VIDEO=$(usex gstreamer)
|
217 |
219 |
-DUSE_GSTREAMER_WEBRTC=$(usex gstreamer)
|
218 |
220 |
-DUSE_GSTREAMER_TRANSCODER=$(usex gstreamer)
|
219 |
|
-DENABLE_WEBDRIVER=OFF # Disable WebDriver for webkit2gtk-4.0 and use the webkit2gtk-4.1
|
|
221 |
-DENABLE_WEBDRIVER=ON
|
220 |
222 |
-DENABLE_WEBGL=ON
|
221 |
223 |
-DENABLE_WEB_AUDIO=$(usex gstreamer)
|
222 |
224 |
-DUSE_AVIF=$(usex avif)
|
... | ... | |
236 |
238 |
-DUSE_LIBSECRET=$(usex keyring)
|
237 |
239 |
-DUSE_OPENGL_OR_ES=ON
|
238 |
240 |
-DUSE_OPENJPEG=$(usex jpeg2k)
|
239 |
|
-DUSE_SOUP2=ON
|
|
241 |
-DUSE_SOUP2=OFF
|
240 |
242 |
-DUSE_WOFF2=ON
|
241 |
243 |
)
|
242 |
244 |
|
... | ... | |
246 |
248 |
WK_USE_CCACHE=NO cmake_src_configure
|
247 |
249 |
}
|
248 |
250 |
|
|
251 |
src_install() {
|
|
252 |
cmake_src_install
|
|
253 |
|
|
254 |
insinto /usr/share/gtk-doc/html
|
|
255 |
# This will install API docs specific to webkit2gtk-4.1
|
|
256 |
doins -r "${S}"/Documentation/{jsc-glib,webkit2gtk,webkit2gtk-web-extension}-${SLOT%/*}
|
|
257 |
}
|
|
258 |
|
249 |
259 |
pkg_postinst() {
|
250 |
260 |
optfeature "geolocation service (used at runtime if available)" "app-misc/geoclue"
|
251 |
261 |
optfeature "Common Multimedia codecs" "media-plugins/gst-plugins-meta"
|