| 17 |
17 |
|
| 18 |
18 |
LICENSE="LGPL-2+ BSD"
|
| 19 |
19 |
SLOT="4.1/0" # soname version of libwebkit2gtk-4.1
|
| 20 |
|
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
|
20 |
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
| 21 |
21 |
|
| 22 |
|
IUSE="aqua avif examples gamepad keyring +gstreamer +introspection pdf jpegxl +jumbo-build lcms seccomp spell systemd wayland X"
|
|
22 |
IUSE="aqua avif custom-cflags examples gamepad keyring +gstreamer +introspection pdf jpegxl +jumbo-build lcms seccomp spell systemd wayland X"
|
| 23 |
23 |
REQUIRED_USE="|| ( aqua wayland X )"
|
| 24 |
24 |
|
| 25 |
25 |
# Tests do not run when built from tarballs
|
| ... | ... | |
| 48 |
48 |
RDEPEND="
|
| 49 |
49 |
app-accessibility/at-spi2-core:2
|
| 50 |
50 |
dev-db/sqlite:3
|
|
51 |
dev-libs/expat
|
| 51 |
52 |
dev-libs/glib:2
|
| 52 |
53 |
dev-libs/hyphen
|
| 53 |
54 |
dev-libs/icu:=
|
| ... | ... | |
| 120 |
121 |
"${FILESDIR}"/2.48.3-fix-ftbfs-riscv64.patch
|
| 121 |
122 |
"${FILESDIR}"/2.50.4-disable-native-simd-on-riscv.patch
|
| 122 |
123 |
"${FILESDIR}"/2.50.4-prefer-pthread.patch
|
| 123 |
|
"${FILESDIR}"/2.50.4-fix-angle-include.patch
|
| 124 |
124 |
"${FILESDIR}"/2.50.5-DFGBasicBlockInlines-gcc16.patch
|
| 125 |
125 |
"${FILESDIR}"/2.50.5-EventTarget-gcc16.patch
|
|
126 |
"${FILESDIR}"/2.52.1-documentloader-eventloop-h.patch
|
| 126 |
127 |
)
|
| 127 |
128 |
|
| 128 |
129 |
pkg_pretend() {
|
| ... | ... | |
| 131 |
132 |
einfo "Checking for sufficient disk space to build ${PN} with debugging CFLAGS"
|
| 132 |
133 |
check-reqs_pkg_pretend
|
| 133 |
134 |
fi
|
| 134 |
|
|
| 135 |
|
if ! test-flag-CXX -std=c++17 ; then
|
| 136 |
|
die "You need at least GCC 7.3.x or Clang >= 5 for C++17-specific compiler flags"
|
| 137 |
|
fi
|
| 138 |
135 |
fi
|
| 139 |
136 |
}
|
| 140 |
137 |
|
| ... | ... | |
| 159 |
156 |
# Respect CC, otherwise fails on prefix #395875
|
| 160 |
157 |
tc-export CC
|
| 161 |
158 |
|
| 162 |
|
# ODR violations (bug #915230, https://bugs.webkit.org/show_bug.cgi?id=233007)
|
| 163 |
|
filter-lto
|
|
159 |
if use custom-cflags; then
|
|
160 |
# Bug 641398
|
|
161 |
append-cppflags -DRELEASE_WITHOUT_OPTIMIZATIONS
|
|
162 |
else
|
|
163 |
# ODR violations, bug 915230.
|
|
164 |
# https://bugs.webkit.org/show_bug.cgi?id=233007
|
|
165 |
filter-lto
|
|
166 |
|
|
167 |
# Bug 965483
|
|
168 |
if is-flagq '-g?(gdb)?([2-9])'; then
|
|
169 |
replace-flags '-g?(gdb)?([2-9])' -g1
|
|
170 |
ewarn "-g2+/-ggdb* *FLAGS replaced with -g1"
|
|
171 |
fi
|
|
172 |
fi
|
| 164 |
173 |
|
| 165 |
174 |
# It does not compile on alpha without this in LDFLAGS
|
| 166 |
175 |
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648761
|
| ... | ... | |
| 175 |
184 |
# Try to use less memory, bug #469942 (see Fedora .spec for reference)
|
| 176 |
185 |
append-ldflags $(test-flags-CCLD "-Wl,--no-keep-memory")
|
| 177 |
186 |
|
| 178 |
|
if is-flagq '-g?(gdb)?([2-9])'; then #965483
|
| 179 |
|
replace-flags '-g?(gdb)?([2-9])' -g1
|
| 180 |
|
ewarn "-g2+/-ggdb* *FLAGS replaced with -g1"
|
| 181 |
|
fi
|
| 182 |
|
|
| 183 |
187 |
# Ruby situation is a bit complicated. See bug 513888
|
| 184 |
188 |
local rubyimpl
|
| 185 |
189 |
local ruby_interpreter=""
|
| ... | ... | |
| 221 |
225 |
-DENABLE_VIDEO=$(usex gstreamer)
|
| 222 |
226 |
-DENABLE_WEB_AUDIO=$(usex gstreamer)
|
| 223 |
227 |
-DENABLE_WEB_CODECS=$(usex gstreamer) # https://bugs.webkit.org/show_bug.cgi?id=269147
|
|
228 |
# Since 2.44 the GTK4(6.0) SLOT also
|
|
229 |
# ships the WebKitWebDriver binary; WebKitWebDriver is an automation
|
|
230 |
# tool for web developers, which lets one control the browser via
|
|
231 |
# WebDriver API - only one SLOT can ship it
|
| 224 |
232 |
-DENABLE_WEBDRIVER=OFF
|
| 225 |
233 |
-DENABLE_WEBGL=ON
|
| 226 |
234 |
-DUSE_AVIF=$(usex avif)
|
| 227 |
235 |
# Source/cmake/GStreamerDependencies.cmake
|
| 228 |
236 |
-DENABLE_MEDIA_TELEMETRY=OFF
|
|
237 |
-DUSE_GSTREAMER=$(usex gstreamer)
|
| 229 |
238 |
-DUSE_GSTREAMER_WEBRTC=$(usex gstreamer)
|
| 230 |
239 |
# Source/cmake/OptionsGTK.cmake
|
| 231 |
240 |
-DENABLE_DOCUMENTATION=OFF
|
| ... | ... | |
| 242 |
251 |
-DUSE_LIBDRM=ON
|
| 243 |
252 |
-DUSE_LIBHYPHEN=ON
|
| 244 |
253 |
-DUSE_LIBSECRET=$(usex keyring)
|
| 245 |
|
-DUSE_SOUP2=OFF
|
| 246 |
254 |
-DUSE_SYSPROF_CAPTURE=OFF
|
| 247 |
255 |
-DUSE_WOFF2=ON
|
| 248 |
256 |
)
|