summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShokara Kou <kou@13f0.net>2022-12-10 11:06:46 -0500
committerShokara Kou <kou@13f0.net>2022-12-10 11:06:46 -0500
commit706327693b4fcc1ce8d5b6cf100beb729ddd1bd1 (patch)
tree0e2fe67329731bb4fa172671c8dd206e4e875ba6
parentb0b7070ac3b63da7c487449bafd47a0c9eec8eed (diff)
add webkitgtk40 without atk
-rw-r--r--www/webkitgtk4/CVS/Entries4
-rw-r--r--www/webkitgtk4/CVS/Repository1
-rw-r--r--www/webkitgtk4/CVS/Root1
-rw-r--r--www/webkitgtk4/Makefile153
-rw-r--r--www/webkitgtk4/distinfo2
-rw-r--r--www/webkitgtk4/patches/CVS/Entries37
-rw-r--r--www/webkitgtk4/patches/CVS/Repository1
-rw-r--r--www/webkitgtk4/patches/CVS/Root1
-rw-r--r--www/webkitgtk4/patches/patch-Source_JavaScriptCore_API_glib_JSCOptions_cpp36
-rw-r--r--www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler_h12
-rw-r--r--www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARMv7Assembler_h12
-rw-r--r--www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_MacroAssemblerX86Common_h19
-rw-r--r--www/webkitgtk4/patches/patch-Source_JavaScriptCore_heap_BlockDirectory_cpp14
-rw-r--r--www/webkitgtk4/patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in10
-rw-r--r--www/webkitgtk4/patches/patch-Source_JavaScriptCore_jsc_cpp11
-rw-r--r--www/webkitgtk4/patches/patch-Source_JavaScriptCore_offlineasm_arm64_rb12
-rw-r--r--www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_MachineContext_h118
-rw-r--r--www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_Options_cpp25
-rw-r--r--www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_platform_h20
-rw-r--r--www/webkitgtk4/patches/patch-Source_WTF_wtf_InlineASM_h12
-rw-r--r--www/webkitgtk4/patches/patch-Source_WTF_wtf_PageBlock_h12
-rw-r--r--www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformCPU_h28
-rw-r--r--www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformEnable_h14
-rw-r--r--www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h18
-rw-r--r--www/webkitgtk4/patches/patch-Source_WTF_wtf_Platform_h13
-rw-r--r--www/webkitgtk4/patches/patch-Source_WTF_wtf_RawHex_h21
-rw-r--r--www/webkitgtk4/patches/patch-Source_WTF_wtf_dtoa_utils_h12
-rw-r--r--www/webkitgtk4/patches/patch-Source_WebCore_PAL_pal_PlatformGTK_cmake18
-rw-r--r--www/webkitgtk4/patches/patch-Source_WebCore_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp16
-rw-r--r--www/webkitgtk4/patches/patch-Source_WebCore_page_NavigatorBase_cpp21
-rw-r--r--www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_FontSelectionAlgorithm_h30
-rw-r--r--www/webkitgtk4/patches/patch-Source_WebCore_platform_network_DNS_h11
-rw-r--r--www/webkitgtk4/patches/patch-Source_WebCore_rendering_RenderLayerBacking_h16
-rw-r--r--www/webkitgtk4/patches/patch-Source_WebDriver_PlatformGTK_cmake17
-rw-r--r--www/webkitgtk4/patches/patch-Source_WebKit_Platform_IPC_ArgumentCoders_h115
-rw-r--r--www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in10
-rw-r--r--www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in10
-rw-r--r--www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_cpp90
-rw-r--r--www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h21
-rw-r--r--www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_BPlatform_h14
-rw-r--r--www/webkitgtk4/patches/patch-Source_cmake_OptionsCommon_cmake16
-rw-r--r--www/webkitgtk4/patches/patch-Source_cmake_WebKitCommon_cmake43
-rw-r--r--www/webkitgtk4/patches/patch-Source_cmake_WebKitCompilerFlags_cmake16
-rw-r--r--www/webkitgtk4/patches/patch-Source_cmake_WebKitFeatures_cmake12
-rw-r--r--www/webkitgtk4/pkg/CVS/Entries5
-rw-r--r--www/webkitgtk4/pkg/CVS/Repository1
-rw-r--r--www/webkitgtk4/pkg/CVS/Root1
-rw-r--r--www/webkitgtk4/pkg/DESCR3
-rw-r--r--www/webkitgtk4/pkg/PLIST285
49 files changed, 1390 insertions, 0 deletions
diff --git a/www/webkitgtk4/CVS/Entries b/www/webkitgtk4/CVS/Entries
new file mode 100644
index 0000000..db7a48e
--- /dev/null
+++ b/www/webkitgtk4/CVS/Entries
@@ -0,0 +1,4 @@
1/Makefile/1.183/Sat Sep 17 08:13:54 2022//
2/distinfo/1.100/Sat Sep 17 08:13:54 2022//
3D/patches////
4D/pkg////
diff --git a/www/webkitgtk4/CVS/Repository b/www/webkitgtk4/CVS/Repository
new file mode 100644
index 0000000..5000111
--- /dev/null
+++ b/www/webkitgtk4/CVS/Repository
@@ -0,0 +1 @@
ports/www/webkitgtk4
diff --git a/www/webkitgtk4/CVS/Root b/www/webkitgtk4/CVS/Root
new file mode 100644
index 0000000..3811072
--- /dev/null
+++ b/www/webkitgtk4/CVS/Root
@@ -0,0 +1 @@
/cvs
diff --git a/www/webkitgtk4/Makefile b/www/webkitgtk4/Makefile
new file mode 100644
index 0000000..56fd7e2
--- /dev/null
+++ b/www/webkitgtk4/Makefile
@@ -0,0 +1,153 @@
1# patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in
2# patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in
3# patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in
4USE_WXNEEDED = Yes
5
6BROKEN-alpha = GCC 5.0.0 is required to build WebKitGTK+, use a newer GCC version or clang
7BROKEN-hppa = GCC 5.0.0 is required to build WebKitGTK+, use a newer GCC version or clang
8BROKEN-arm = JavaScriptCore/runtime/MachineContext.h, various sigcontext-related
9
10PORTROACH = limitw:1,even
11
12COMMENT = GTK+ port of the WebKit (${API}) rendering engine
13
14V = 2.38.0
15DISTNAME = webkitgtk-${V}
16PKGNAME = webkitgtk${API:S/.//}-${V}
17FULLPKGNAME = ${PKGNAME}
18
19EXTRACT_SUFX = .tar.xz
20SUBST_VARS = API
21DPB_PROPERTIES = parallel
22
23SHARED_LIBS += javascriptcoregtk-${API} 3.7
24SHARED_LIBS += webkit2gtk-${API} 3.7
25
26CATEGORIES = www
27
28HOMEPAGE = https://webkitgtk.org/
29
30MAINTAINER = Antoine Jacoutot <ajacoutot@openbsd.org>
31
32# LGPLv2 and BSD
33PERMIT_PACKAGE = Yes
34
35WANTLIB += ${COMPILER_LIBCXX} EGL GL X11 Xcomposite Xdamage Xrender
36WANTLIB += Xt c cairo cairo-gobject enchant-2 fontconfig
37WANTLIB += freetype gcrypt gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0
38WANTLIB += gobject-2.0 gpg-error gstallocators-1.0 gstapp-1.0
39WANTLIB += gstaudio-1.0 gstbase-1.0 gstfft-1.0 gstgl-1.0 gstpbutils-1.0
40WANTLIB += gstreamer-1.0 gsttag-1.0 gstvideo-1.0 harfbuzz harfbuzz-icu
41WANTLIB += hyphen icudata icui18n icuuc intl jpeg lcms2 m openjp2
42WANTLIB += pango-1.0 pangocairo-1.0 png secret-1 sqlite3 tasn1
43WANTLIB += woff2dec xml2 xslt z
44
45MASTER_SITES = https://webkitgtk.org/releases/
46
47MODULES = devel/cmake \
48 lang/python \
49 lang/ruby \
50 x11/gnome
51
52COMPILER = base-clang ports-gcc
53
54MODRUBY_RUNDEP = No
55MODPY_RUNDEP = No
56MODPY_ADJ_FILES = Tools/glib/generate-inspector-gresource-manifest.py
57
58DEBUG_PACKAGES = ${BUILD_PACKAGES}
59
60NO_TEST = Yes
61
62BUILD_DEPENDS = devel/bison \
63 devel/gettext,-tools \
64 devel/gperf
65
66LIB_DEPENDS = archivers/woff2 \
67 devel/harfbuzz,-icu \
68 graphics/openjp2 \
69 multimedia/gstreamer1/plugins-base \
70 textproc/enchant2 \
71 textproc/hyphen \
72 textproc/libxslt \
73 x11/gnome/libsecret
74
75CONFIGURE_ENV = WK_USE_CCACHE=NO
76CONFIGURE_ARGS = -DPORT=GTK \
77 -DENABLE_MINIBROWSER=ON \
78 -DENABLE_JOURNALD_LOG=OFF
79
80# XXX broken at run time
81#CONFIGURE_ARGS += -DUSE_SYSTEM_MALLOC=ON
82
83# required for faking a better user-agent
84.if ${MACHINE_ARCH} == "amd64"
85CPUARCH = x86_64
86.else
87CPUARCH = ${ARCH}
88.endif
89#XXXTODO CONFIGURE_ARGS += -DUSER_AGENT_BRANDING="Linux ${CPUARCH}; OpenBSD ${ARCH}"
90CONFIGURE_ARGS += -DUSER_AGENT_BRANDING="Linux ${CPUARCH}"
91
92# needs Wayland (libwpe -> WPEBackend-fdo -> Wayland)
93CONFIGURE_ARGS += -DUSE_WPE_RENDERER=OFF
94
95# Needs GUdev
96CONFIGURE_ARGS += -DENABLE_GAMEPAD=OFF
97
98# sync with Source/JavaScriptCore/assembler/MacroAssembler.h
99# native support for riscv64 in LLInt fails to link with relocation errors
100.if ${MACHINE_ARCH} != "aarch64" && ${MACHINE_ARCH} != "amd64" && \
101 ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "i386" && \
102 ${MACHINE_ARCH} != "mips64" && ${MACHINE_ARCH} != "mips64el"
103# #error "The MacroAssembler is not supported on this platform."
104CONFIGURE_ARGS += -DENABLE_JIT=OFF
105CONFIGURE_ARGS += -DENABLE_C_LOOP=ON
106.endif
107
108
109# we don't want an allocation of 1GB, it's above the "default" class ulimit
110.if ${MACHINE_ARCH} == "amd64"
111CXXFLAGS += -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=384
112.endif
113CXXFLAGS += -DSTRUCTURE_HEAP_ADDRESS_SIZE_IN_MB=256
114
115# fatal error: 'X11/Xlib.h' file not found
116CXXFLAGS += -I${X11BASE}/include
117
118.include <bsd.port.arch.mk>
119
120# disable thin archives for bfd;
121# and set DEBUG=-g1 for GNU ar(1) arches (libWebCoreGTK.a is too big (4.1G)):
122# ../../lib/libWebCoreGTK.a: could not read symbols: Malformed archive
123# https://bugs.webkit.org/show_bug.cgi?id=140384
124.if !${PROPERTIES:Mlld}
125CONFIGURE_ARGS += -DUSE_THIN_ARCHIVES=FALSE
126DEBUG = -g1
127.endif
128
129.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "i386"
130# Don't make LLVM run out of memory
131DPB_PROPERTIES = lonesome
132LDFLAGS += -Wl,--no-keep-memory
133.endif
134
135API = 4.0
136WANTLIB += gdk-3 gtk-3 soup-2.4
137LIB_DEPENDS += devel/libsoup \
138 x11/gtk+3
139CONFIGURE_ARGS += -DUSE_SOUP2=ON
140
141post-extract:
142 ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python
143 ln -sf ${RUBY} ${WRKDIR}/bin/ruby
144
145pre-configure:
146 ${SUBST_CMD} ${WRKSRC}/Source/cmake/WebKitCommon.cmake
147
148# only include WebKitWebDriver for the more recent version to prevent conflict;
149# could be revisited by using MULTI_PACKAGES but it's not worth the complexity;
150post-install:
151 rm ${PREFIX}/bin/WebKitWebDriver
152
153.include <bsd.port.mk>
diff --git a/www/webkitgtk4/distinfo b/www/webkitgtk4/distinfo
new file mode 100644
index 0000000..dd3f75a
--- /dev/null
+++ b/www/webkitgtk4/distinfo
@@ -0,0 +1,2 @@
1SHA256 (webkitgtk-2.38.0.tar.xz) = +c5jdaO24TKbC2CfRpIeJifcetYiSze5Z6supkO8D70=
2SIZE (webkitgtk-2.38.0.tar.xz) = 32997240
diff --git a/www/webkitgtk4/patches/CVS/Entries b/www/webkitgtk4/patches/CVS/Entries
new file mode 100644
index 0000000..6dc3959
--- /dev/null
+++ b/www/webkitgtk4/patches/CVS/Entries
@@ -0,0 +1,37 @@
1/patch-Source_JavaScriptCore_API_glib_JSCOptions_cpp/1.3/Sat Sep 17 08:13:54 2022//
2/patch-Source_JavaScriptCore_assembler_ARM64Assembler_h/1.13/Sat Sep 17 08:13:54 2022//
3/patch-Source_JavaScriptCore_assembler_ARMv7Assembler_h/1.8/Sat Sep 17 08:13:54 2022//
4/patch-Source_JavaScriptCore_assembler_MacroAssemblerX86Common_h/1.7/Fri Mar 11 20:11:07 2022//
5/patch-Source_JavaScriptCore_heap_BlockDirectory_cpp/1.2/Fri Mar 11 20:11:07 2022//
6/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in/1.5/Fri Mar 11 20:11:07 2022//
7/patch-Source_JavaScriptCore_jsc_cpp/1.5/Sat Mar 26 16:11:56 2022//
8/patch-Source_JavaScriptCore_offlineasm_arm64_rb/1.9/Sat Sep 17 08:13:54 2022//
9/patch-Source_JavaScriptCore_runtime_MachineContext_h/1.11/Sat Sep 17 08:13:54 2022//
10/patch-Source_JavaScriptCore_runtime_Options_cpp/1.9/Sat Sep 17 08:13:54 2022//
11/patch-Source_ThirdParty_ANGLE_src_common_platform_h/1.1/Sat Mar 26 16:11:56 2022//
12/patch-Source_WTF_wtf_InlineASM_h/1.4/Fri Mar 11 20:11:07 2022//
13/patch-Source_WTF_wtf_PageBlock_h/1.7/Sat Sep 17 08:13:54 2022//
14/patch-Source_WTF_wtf_PlatformCPU_h/1.3/Fri Mar 11 20:11:07 2022//
15/patch-Source_WTF_wtf_PlatformEnable_h/1.8/Sat Sep 17 08:13:54 2022//
16/patch-Source_WTF_wtf_PlatformHave_h/1.8/Tue Apr 5 07:28:25 2022//
17/patch-Source_WTF_wtf_Platform_h/1.19/Fri Mar 11 20:11:07 2022//
18/patch-Source_WTF_wtf_RawHex_h/1.1/Sat Sep 17 08:13:54 2022//
19/patch-Source_WTF_wtf_dtoa_utils_h/1.6/Fri Mar 11 20:11:07 2022//
20/patch-Source_WebCore_PAL_pal_PlatformGTK_cmake/1.3/Fri Mar 11 20:11:07 2022//
21/patch-Source_WebCore_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp/1.2/Fri Mar 11 20:11:07 2022//
22/patch-Source_WebCore_page_NavigatorBase_cpp/1.3/Sat Mar 26 16:11:56 2022//
23/patch-Source_WebCore_platform_graphics_FontSelectionAlgorithm_h/1.4/Fri Mar 11 20:11:07 2022//
24/patch-Source_WebCore_platform_network_DNS_h/1.3/Fri Mar 11 20:11:07 2022//
25/patch-Source_WebCore_rendering_RenderLayerBacking_h/1.2/Fri Mar 11 20:11:07 2022//
26/patch-Source_WebDriver_PlatformGTK_cmake/1.2/Fri Mar 11 20:11:07 2022//
27/patch-Source_WebKit_Platform_IPC_ArgumentCoders_h/1.1/Sat Sep 17 08:13:54 2022//
28/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in/1.6/Fri Mar 11 20:11:07 2022//
29/patch-Source_WebKit_gtk_webkit2gtk_pc_in/1.6/Fri Mar 11 20:11:07 2022//
30/patch-Source_bmalloc_bmalloc_AvailableMemory_cpp/1.2/Sat Sep 17 08:13:54 2022//
31/patch-Source_bmalloc_bmalloc_AvailableMemory_h/1.1/Sat Mar 26 16:11:56 2022//
32/patch-Source_bmalloc_bmalloc_BPlatform_h/1.1/Sat Mar 26 16:11:56 2022//
33/patch-Source_cmake_OptionsCommon_cmake/1.21/Sat Mar 26 16:11:56 2022//
34/patch-Source_cmake_WebKitCommon_cmake/1.10/Sat Sep 17 08:13:54 2022//
35/patch-Source_cmake_WebKitCompilerFlags_cmake/1.12/Sat Sep 17 08:13:54 2022//
36/patch-Source_cmake_WebKitFeatures_cmake/1.13/Sat Sep 17 08:13:54 2022//
37D
diff --git a/www/webkitgtk4/patches/CVS/Repository b/www/webkitgtk4/patches/CVS/Repository
new file mode 100644
index 0000000..be284f0
--- /dev/null
+++ b/www/webkitgtk4/patches/CVS/Repository
@@ -0,0 +1 @@
ports/www/webkitgtk4/patches
diff --git a/www/webkitgtk4/patches/CVS/Root b/www/webkitgtk4/patches/CVS/Root
new file mode 100644
index 0000000..3811072
--- /dev/null
+++ b/www/webkitgtk4/patches/CVS/Root
@@ -0,0 +1 @@
/cvs
diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_API_glib_JSCOptions_cpp b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_API_glib_JSCOptions_cpp
new file mode 100644
index 0000000..9818d88
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_API_glib_JSCOptions_cpp
@@ -0,0 +1,36 @@
1Unbreak i386:
2- revert https://trac.webkit.org/changeset/241014/webkit
3- https://bugs.webkit.org/show_bug.cgi?id=194330
4
5Index: Source/JavaScriptCore/API/glib/JSCOptions.cpp
6--- Source/JavaScriptCore/API/glib/JSCOptions.cpp.orig
7+++ Source/JavaScriptCore/API/glib/JSCOptions.cpp
8@@ -73,7 +73,6 @@ static void valueToGValue(int32_t value, GValue* gValu
9 g_value_set_int(gValue, value);
10 }
11
12-#if CPU(ADDRESS64)
13 static bool valueFromGValue(const GValue* gValue, unsigned& value)
14 {
15 value = g_value_get_uint(gValue);
16@@ -84,7 +83,6 @@ static void valueToGValue(unsigned value, GValue* gVal
17 {
18 g_value_set_uint(gValue, value);
19 }
20-#endif
21
22 static bool valueFromGValue(const GValue* gValue, size_t& value)
23 {
24@@ -556,12 +554,10 @@ static JSCOptionType jscOptionsType(int)
25 return JSC_OPTION_INT;
26 }
27
28-#if CPU(ADDRESS64)
29 static JSCOptionType jscOptionsType(unsigned)
30 {
31 return JSC_OPTION_UINT;
32 }
33-#endif
34
35 static JSCOptionType jscOptionsType(size_t)
36 {
diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler_h b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler_h
new file mode 100644
index 0000000..562562c
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler_h
@@ -0,0 +1,12 @@
1Index: Source/JavaScriptCore/assembler/ARM64Assembler.h
2--- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig
3+++ Source/JavaScriptCore/assembler/ARM64Assembler.h
4@@ -2918,6 +2918,8 @@ class ARM64Assembler { (public)
5 {
6 #if OS(DARWIN)
7 sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
8+#elif OS(FREEBSD) || OS(NETBSD) || OS(OPENBSD)
9+ __clear_cache(code, reinterpret_cast<char*>(code) + size);
10 #elif OS(FUCHSIA)
11 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
12 #elif OS(LINUX)
diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARMv7Assembler_h b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARMv7Assembler_h
new file mode 100644
index 0000000..5438875
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_ARMv7Assembler_h
@@ -0,0 +1,12 @@
1Index: Source/JavaScriptCore/assembler/ARMv7Assembler.h
2--- Source/JavaScriptCore/assembler/ARMv7Assembler.h.orig
3+++ Source/JavaScriptCore/assembler/ARMv7Assembler.h
4@@ -2573,6 +2573,8 @@ class ARMv7Assembler { (public)
5 linuxPageFlush(current, current + page);
6
7 linuxPageFlush(current, end);
8+#elif CPU(ARM_TRADITIONAL) && (OS(FREEBSD) || OS(OPENBSD)) && COMPILER(CLANG)
9+ __clear_cache(code, reinterpret_cast<char*>(code) + size);
10 #else
11 #error "The cacheFlush support is missing on this platform."
12 #endif
diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_MacroAssemblerX86Common_h b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_MacroAssemblerX86Common_h
new file mode 100644
index 0000000..f864540
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_assembler_MacroAssemblerX86Common_h
@@ -0,0 +1,19 @@
1XXX error: macro "swap32" passed 2 arguments, but takes just 1
2XXX error: macro "swap64" passed 2 arguments, but takes just 1
3
4Index: Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h
5--- Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h.orig
6+++ Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h
7@@ -31,6 +31,12 @@
8 #include "AbstractMacroAssembler.h"
9 #include <array>
10
11+/* conflicting definition in endian.h */
12+#if OS(OPENBSD)
13+#undef swap32
14+#undef swap64
15+#endif
16+
17 namespace JSC {
18
19 using Assembler = TARGET_ASSEMBLER;
diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_heap_BlockDirectory_cpp b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_heap_BlockDirectory_cpp
new file mode 100644
index 0000000..0ec4c26
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_heap_BlockDirectory_cpp
@@ -0,0 +1,14 @@
1No mincore(2) on OpenBSD.
2
3Index: Source/JavaScriptCore/heap/BlockDirectory.cpp
4--- Source/JavaScriptCore/heap/BlockDirectory.cpp.orig
5+++ Source/JavaScriptCore/heap/BlockDirectory.cpp
6@@ -60,7 +60,7 @@ void BlockDirectory::setSubspace(Subspace* subspace)
7 void BlockDirectory::updatePercentageOfPagedOutPages(SimpleStats& stats)
8 {
9 // FIXME: We should figure out a solution for Windows.
10-#if OS(UNIX)
11+#if OS(UNIX) && !OS(OPENBSD)
12 size_t pageSize = WTF::pageSize();
13 ASSERT(!(MarkedBlock::blockSize % pageSize));
14 auto numberOfPagesInMarkedBlock = MarkedBlock::blockSize / pageSize;
diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in
new file mode 100644
index 0000000..72d8553
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_javascriptcoregtk_pc_in
@@ -0,0 +1,10 @@
1Index: Source/JavaScriptCore/javascriptcoregtk.pc.in
2--- Source/JavaScriptCore/javascriptcoregtk.pc.in.orig
3+++ Source/JavaScriptCore/javascriptcoregtk.pc.in
4@@ -8,5 +8,5 @@ Name: JavaScriptCoreGTK+
5 Description: GTK+ version of the JavaScriptCore engine
6 Version: @PROJECT_VERSION@
7 Requires: glib-2.0 gobject-2.0
8-Libs: -L${libdir} -ljavascriptcoregtk-@WEBKITGTK_API_VERSION@
9+Libs: -L${libdir} -ljavascriptcoregtk-@WEBKITGTK_API_VERSION@ -Wl,-z,wxneeded
10 Cflags: -I${includedir}/webkitgtk-@WEBKITGTK_API_VERSION@
diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_jsc_cpp b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_jsc_cpp
new file mode 100644
index 0000000..679d2bb
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_jsc_cpp
@@ -0,0 +1,11 @@
1Index: Source/JavaScriptCore/jsc.cpp
2--- Source/JavaScriptCore/jsc.cpp.orig
3+++ Source/JavaScriptCore/jsc.cpp
4@@ -78,6 +78,7 @@
5 #include "WasmCapabilities.h"
6 #include "WasmFaultSignalHandler.h"
7 #include "WasmMemory.h"
8+#include <locale.h> /* LC_ALL */
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_offlineasm_arm64_rb b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_offlineasm_arm64_rb
new file mode 100644
index 0000000..5a1abcd
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_offlineasm_arm64_rb
@@ -0,0 +1,12 @@
1Index: Source/JavaScriptCore/offlineasm/arm64.rb
2--- Source/JavaScriptCore/offlineasm/arm64.rb.orig
3+++ Source/JavaScriptCore/offlineasm/arm64.rb
4@@ -1226,7 +1226,7 @@ class Instruction
5 $asm.puts "ldr #{operands[1].arm64Operand(:quad)}, [#{operands[1].arm64Operand(:quad)}, #{operands[0].asmLabel}@GOTPAGEOFF]"
6
7 # On Linux, use ELF GOT relocation specifiers.
8- $asm.putStr("#elif OS(LINUX)")
9+ $asm.putStr("#elif OS(LINUX) || OS(OPENBSD)")
10 $asm.puts "adrp #{operands[1].arm64Operand(:quad)}, :got:#{operands[0].asmLabel}"
11 $asm.puts "ldr #{operands[1].arm64Operand(:quad)}, [#{operands[1].arm64Operand(:quad)}, :got_lo12:#{operands[0].asmLabel}]"
12
diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_MachineContext_h b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_MachineContext_h
new file mode 100644
index 0000000..43a1509
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_MachineContext_h
@@ -0,0 +1,118 @@
1Index: Source/JavaScriptCore/runtime/MachineContext.h
2--- Source/JavaScriptCore/runtime/MachineContext.h.orig
3+++ Source/JavaScriptCore/runtime/MachineContext.h
4@@ -193,6 +193,22 @@ static inline void*& stackPointerImpl(mcontext_t& mach
5 #error Unknown Architecture
6 #endif
7
8+#elif OS(OPENBSD)
9+
10+#if CPU(X86)
11+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_esp);
12+#elif CPU(X86_64)
13+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_rsp);
14+#elif CPU(ARM)
15+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_SP]);
16+#elif CPU(ARM64)
17+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_sp);
18+#elif CPU(MIPS)
19+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.mc_regs[29]);
20+#else
21+#error Unknown Architecture
22+#endif
23+
24 #elif OS(FUCHSIA) || OS(LINUX)
25
26 #if CPU(X86)
27@@ -338,6 +354,22 @@ static inline void*& framePointerImpl(mcontext_t& mach
28 #error Unknown Architecture
29 #endif
30
31+#elif OS(OPENBSD)
32+
33+#if CPU(X86)
34+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_ebp);
35+#elif CPU(X86_64)
36+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_rbp);
37+#elif CPU(ARM)
38+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_FP]);
39+#elif CPU(ARM64)
40+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_x[29]);
41+#elif CPU(MIPS)
42+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.mc_regs[30]);
43+#else
44+#error Unknown Architecture
45+#endif
46+
47 #elif OS(FUCHSIA) || OS(LINUX)
48
49 // The following sequence depends on glibc's sys/ucontext.h.
50@@ -496,6 +528,22 @@ static inline void*& instructionPointerImpl(mcontext_t
51 #error Unknown Architecture
52 #endif
53
54+#elif OS(OPENBSD)
55+
56+#if CPU(X86)
57+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_eip);
58+#elif CPU(X86_64)
59+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_rip);
60+#elif CPU(ARM)
61+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_PC]);
62+#elif CPU(ARM64)
63+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_elr);
64+#elif CPU(MIPS)
65+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.mc_pc);
66+#else
67+#error Unknown Architecture
68+#endif
69+
70 #elif OS(FUCHSIA) || OS(LINUX)
71
72 // The following sequence depends on glibc's sys/ucontext.h.
73@@ -652,6 +700,22 @@ inline void*& argumentPointer<1>(mcontext_t& machineCo
74 #error Unknown Architecture
75 #endif
76
77+#elif OS(OPENBSD)
78+
79+#if CPU(X86)
80+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_edx);
81+#elif CPU(X86_64)
82+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_rsi);
83+#elif CPU(ARM)
84+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R1]);
85+#elif CPU(ARM64)
86+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_x[1]);
87+#elif CPU(MIPS)
88+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.mc_regs[5]);
89+#else
90+#error Unknown Architecture
91+#endif
92+
93 #elif OS(FUCHSIA) || OS(LINUX)
94
95 // The following sequence depends on glibc's sys/ucontext.h.
96@@ -765,6 +829,22 @@ inline void*& llintInstructionPointer(mcontext_t& mach
97 return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
98 #elif CPU(ARM64)
99 return reinterpret_cast<void*&>((uintptr_t&) machineContext.mc_gpregs.gp_x[4]);
100+#elif CPU(MIPS)
101+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.mc_regs[12]);
102+#else
103+#error Unknown Architecture
104+#endif
105+
106+#elif OS(OPENBSD)
107+
108+#if CPU(X86)
109+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_esi);
110+#elif CPU(X86_64)
111+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_r8);
112+#elif CPU(ARM)
113+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.__gregs[_REG_R8]);
114+#elif CPU(ARM64)
115+ return reinterpret_cast<void*&>((uintptr_t&) machineContext.sc_x[4]);
116 #elif CPU(MIPS)
117 return reinterpret_cast<void*&>((uintptr_t&) machineContext.mc_regs[12]);
118 #else
diff --git a/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_Options_cpp b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_Options_cpp
new file mode 100644
index 0000000..3c9f0e7
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_JavaScriptCore_runtime_Options_cpp
@@ -0,0 +1,25 @@
1powerpc and i386 fix for:
2undefined reference to `WTF::Optional<unsigned long>
3JSC::parse<unsigned long>(char const*)'
4
5Index: Source/JavaScriptCore/runtime/Options.cpp
6--- Source/JavaScriptCore/runtime/Options.cpp.orig
7+++ Source/JavaScriptCore/runtime/Options.cpp
8@@ -91,7 +91,7 @@ std::optional<OptionsStorage::Unsigned> parse(const ch
9 return std::nullopt;
10 }
11
12-#if CPU(ADDRESS64) || OS(DARWIN)
13+#if CPU(ADDRESS64) || OS(DARWIN) || OS(OPENBSD)
14 template<>
15 std::optional<OptionsStorage::Size> parse(const char* string)
16 {
17@@ -100,7 +100,7 @@ std::optional<OptionsStorage::Size> parse(const char*
18 return value;
19 return std::nullopt;
20 }
21-#endif // CPU(ADDRESS64) || OS(DARWIN)
22+#endif // CPU(ADDRESS64) || OS(DARWIN) || OS(OPENBSD)
23
24 template<>
25 std::optional<OptionsStorage::Double> parse(const char* string)
diff --git a/www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_platform_h b/www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_platform_h
new file mode 100644
index 0000000..d211055
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_ThirdParty_ANGLE_src_common_platform_h
@@ -0,0 +1,20 @@
1Index: Source/ThirdParty/ANGLE/src/common/platform.h
2--- Source/ThirdParty/ANGLE/src/common/platform.h.orig
3+++ Source/ThirdParty/ANGLE/src/common/platform.h
4@@ -26,7 +26,15 @@
5 #elif defined(__linux__) || defined(EMSCRIPTEN)
6 # define ANGLE_PLATFORM_LINUX 1
7 # define ANGLE_PLATFORM_POSIX 1
8-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \
9+#elif defined(__OpenBSD__)
10+# define ANGLE_PLATFORM_OPENBSD 1
11+# define ANGLE_PLATFORM_POSIX 1
12+# define ANGLE_PLATFORM_BSD 1
13+#elif defined(__FreeBSD__)
14+# define ANGLE_PLATFORM_FREEBSD 1
15+# define ANGLE_PLATFORM_POSIX 1
16+# define ANGLE_PLATFORM_BSD 1
17+#elif defined(__NetBSD__) || \
18 defined(__DragonFly__) || defined(__sun) || defined(__GLIBC__) || defined(__GNU__) || \
19 defined(__QNX__) || defined(__Fuchsia__) || defined(__HAIKU__)
20 # define ANGLE_PLATFORM_POSIX 1
diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_InlineASM_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_InlineASM_h
new file mode 100644
index 0000000..38594b2
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_InlineASM_h
@@ -0,0 +1,12 @@
1Index: Source/WTF/wtf/InlineASM.h
2--- Source/WTF/wtf/InlineASM.h.orig
3+++ Source/WTF/wtf/InlineASM.h
4@@ -43,7 +43,7 @@
5 #define THUMB_FUNC_PARAM(name)
6 #endif
7
8-#if (OS(LINUX) || OS(FREEBSD)) && CPU(X86_64)
9+#if (OS(LINUX) || OS(FREEBSD) || OS(OPENBSD)) && CPU(X86_64)
10 #define GLOBAL_REFERENCE(name) #name "@plt"
11 #elif CPU(X86) && COMPILER(MINGW)
12 #define GLOBAL_REFERENCE(name) "@" #name "@4"
diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_PageBlock_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PageBlock_h
new file mode 100644
index 0000000..e2da01a
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PageBlock_h
@@ -0,0 +1,12 @@
1Index: Source/WTF/wtf/PageBlock.h
2--- Source/WTF/wtf/PageBlock.h.orig
3+++ Source/WTF/wtf/PageBlock.h
4@@ -55,6 +55,8 @@ constexpr size_t CeilingOnPageSize = 16 * KB;
5 constexpr size_t CeilingOnPageSize = 64 * KB;
6 #elif OS(WINDOWS) || CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(ARM64) || CPU(RISCV64)
7 constexpr size_t CeilingOnPageSize = 4 * KB;
8+#elif CPU(SPARC64)
9+constexpr size_t CeilingOnPageSize = 8 * KB;
10 #else
11 #error Must set CeilingOnPageSize in PageBlock.h when adding a new CPU architecture!
12 #endif
diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformCPU_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformCPU_h
new file mode 100644
index 0000000..1bebf1f
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformCPU_h
@@ -0,0 +1,28 @@
1https://bugs.webkit.org/show_bug.cgi?id=129963
2
3Index: Source/WTF/wtf/PlatformCPU.h
4--- Source/WTF/wtf/PlatformCPU.h.orig
5+++ Source/WTF/wtf/PlatformCPU.h
6@@ -89,6 +89,13 @@
7 #define WTF_CPU_KNOWN 1
8 #endif
9
10+/* CPU(SPARC64) - SPARC V9 */
11+#if defined(__sparc64__)
12+#define WTF_CPU_KNOWN 1
13+#define WTF_CPU_SPARC64 1
14+#define WTF_CPU_BIG_ENDIAN 1
15+#endif
16+
17 /* CPU(X86) - i386 / x86 32-bit */
18 #if defined(__i386__) \
19 || defined(i386) \
20@@ -289,7 +296,7 @@
21 #define WTF_CPU_UNKNOWN 1
22 #endif
23
24-#if CPU(ARM) || CPU(MIPS) || CPU(UNKNOWN)
25+#if CPU(ARM) || CPU(MIPS) || CPU(SPARC64) || CPU(UNKNOWN)
26 #define WTF_CPU_NEEDS_ALIGNED_ACCESS 1
27 #endif
28
diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformEnable_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformEnable_h
new file mode 100644
index 0000000..7b9c398
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformEnable_h
@@ -0,0 +1,14 @@
1https://bugs.webkit.org/show_bug.cgi?id=129963
2
3Index: Source/WTF/wtf/PlatformEnable.h
4--- Source/WTF/wtf/PlatformEnable.h.orig
5+++ Source/WTF/wtf/PlatformEnable.h
6@@ -646,7 +646,7 @@
7 #if !defined(ENABLE_DFG_JIT) && ENABLE(JIT)
8
9 /* Enable the DFG JIT on X86 and X86_64. */
10-#if CPU(X86_64) && (OS(DARWIN) || OS(LINUX) || OS(FREEBSD) || OS(HURD) || OS(WINDOWS))
11+#if CPU(X86_64) && (OS(DARWIN) || OS(LINUX) || OS(FREEBSD) || OS(OPENBSD) || OS(HURD) || OS(WINDOWS))
12 #define ENABLE_DFG_JIT 1
13 #endif
14
diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h
new file mode 100644
index 0000000..4be2495
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_PlatformHave_h
@@ -0,0 +1,18 @@
1Undo parts of upstream commit 6c2615dd66a12e9a10d7867241cc3bedfb2b2473 [0]
2Machine context definitions were only added for Linux.
3[0] https://github.com/WebKit/WebKit/commit/6c2615dd66a12e9a10d7867241cc3bedfb2b2473
4
5Index: Source/WTF/wtf/PlatformHave.h
6--- Source/WTF/wtf/PlatformHave.h.orig
7+++ Source/WTF/wtf/PlatformHave.h
8@@ -233,6 +233,10 @@
9 #define HAVE_MACHINE_CONTEXT 1
10 #endif
11
12+#if OS(OPENBSD) && CPU(RISCV64)
13+#undef HAVE_MACHINE_CONTEXT
14+#endif
15+
16 #if OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__) && !CPU(MIPS))
17 #define HAVE_BACKTRACE 1
18 #endif
diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_Platform_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_Platform_h
new file mode 100644
index 0000000..c503325
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_Platform_h
@@ -0,0 +1,13 @@
1Fix build with icu4c >=69.1
2
3Index: Source/WTF/wtf/Platform.h
4--- Source/WTF/wtf/Platform.h.orig
5+++ Source/WTF/wtf/Platform.h
6@@ -113,7 +113,6 @@
7
8 /* FIXME: This does not belong in Platform.h and should instead be included in another mechanism (compiler option, prefix header, config.h, etc) */
9 /* ICU configuration. Some of these match ICU defaults on some platforms, but we would like them consistently set everywhere we build WebKit. */
10-#define U_HIDE_DEPRECATED_API 1
11 #define U_SHOW_CPLUSPLUS_API 0
12 #ifdef __cplusplus
13 #define UCHAR_TYPE char16_t
diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_RawHex_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_RawHex_h
new file mode 100644
index 0000000..498e7a0
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_RawHex_h
@@ -0,0 +1,21 @@
1Index: Source/WTF/wtf/RawHex.h
2--- Source/WTF/wtf/RawHex.h.orig
3+++ Source/WTF/wtf/RawHex.h
4@@ -48,7 +48,7 @@ class RawHex { (public)
5 : RawHex(static_cast<uintptr_t>(value))
6 { }
7
8-#if CPU(ADDRESS64) || OS(DARWIN)
9+#if CPU(ADDRESS64) || OS(DARWIN) || OS(OPENBSD)
10 // These causes build errors for CPU(ADDRESS32) on some ports because int32_t
11 // is already handled by intptr_t, and uint32_t is handled by uintptr_t.
12 explicit RawHex(int32_t value)
13@@ -59,7 +59,7 @@ class RawHex { (public)
14 { }
15 #endif
16
17-#if CPU(ADDRESS32) || OS(DARWIN)
18+#if CPU(ADDRESS32) || OS(DARWIN) || OS(OPENBSD)
19 // These causes build errors for CPU(ADDRESS64) on some ports because int64_t
20 // is already handled by intptr_t, and uint64_t is handled by uintptr_t.
21 explicit RawHex(int64_t value)
diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_dtoa_utils_h b/www/webkitgtk4/patches/patch-Source_WTF_wtf_dtoa_utils_h
new file mode 100644
index 0000000..dd59932
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_dtoa_utils_h
@@ -0,0 +1,12 @@
1Index: Source/WTF/wtf/dtoa/utils.h
2--- Source/WTF/wtf/dtoa/utils.h.orig
3+++ Source/WTF/wtf/dtoa/utils.h
4@@ -86,7 +86,7 @@ int main(int argc, char** argv) {
5 defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \
6 defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \
7 defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
8- defined(__SH4__) || defined(__alpha__) || \
9+ defined(__SH4__) || defined(__alpha__) || defined(__sparc64__) || \
10 defined(_MIPS_ARCH_MIPS32R2) || \
11 defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
12 defined(__riscv) || \
diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_PAL_pal_PlatformGTK_cmake b/www/webkitgtk4/patches/patch-Source_WebCore_PAL_pal_PlatformGTK_cmake
new file mode 100644
index 0000000..965bc52
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WebCore_PAL_pal_PlatformGTK_cmake
@@ -0,0 +1,18 @@
1Index: Source/WebCore/PAL/pal/PlatformGTK.cmake
2--- Source/WebCore/PAL/pal/PlatformGTK.cmake.orig
3+++ Source/WebCore/PAL/pal/PlatformGTK.cmake
4@@ -20,6 +20,14 @@ list(APPEND PAL_SOURCES
5 unix/LoggingUnix.cpp
6 )
7
8+list(APPEND PAL_INCLUDE_DIRECTORIES
9+ ${LIBGCRYPT_INCLUDE_DIRS}
10+)
11+
12+list(APPEND PAL_LIBRARIES
13+ ${LIBGCRYPT_LIBRARIES}
14+)
15+
16 if (ENABLE_WEB_CRYPTO)
17 list(APPEND PAL_PUBLIC_HEADERS
18 crypto/tasn1/Utilities.h
diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp b/www/webkitgtk4/patches/patch-Source_WebCore_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp
new file mode 100644
index 0000000..061724e
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WebCore_crypto_algorithms_CryptoAlgorithmAES_GCM_cpp
@@ -0,0 +1,16 @@
1Index: Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp
2--- Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp.orig
3+++ Source/WebCore/crypto/algorithms/CryptoAlgorithmAES_GCM.cpp
4@@ -26,6 +26,12 @@
5 #include "config.h"
6 #include "CryptoAlgorithmAES_GCM.h"
7
8+#if defined(_LP64)
9+# define __WORDSIZE 64
10+#else
11+# define __WORDSIZE 32
12+#endif
13+
14 #if ENABLE(WEB_CRYPTO)
15
16 #include "CryptoAlgorithmAesGcmParams.h"
diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_page_NavigatorBase_cpp b/www/webkitgtk4/patches/patch-Source_WebCore_page_NavigatorBase_cpp
new file mode 100644
index 0000000..7bf4088
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WebCore_page_NavigatorBase_cpp
@@ -0,0 +1,21 @@
1Index: Source/WebCore/page/NavigatorBase.cpp
2--- Source/WebCore/page/NavigatorBase.cpp.orig
3+++ Source/WebCore/page/NavigatorBase.cpp
4@@ -40,7 +40,7 @@
5 #include <wtf/UniqueRef.h>
6 #include <wtf/text/WTFString.h>
7
8-#if OS(LINUX)
9+#if OS(LINUX) || OS(OPENBSD)
10 #include "sys/utsname.h"
11 #include <wtf/StdLibExtras.h>
12 #endif
13@@ -88,7 +88,7 @@ String NavigatorBase::appVersion() const
14
15 String NavigatorBase::platform() const
16 {
17-#if OS(LINUX)
18+#if OS(LINUX) || OS(OPENBSD)
19 static LazyNeverDestroyed<String> platformName;
20 static std::once_flag onceKey;
21 std::call_once(onceKey, [] {
diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_FontSelectionAlgorithm_h b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_FontSelectionAlgorithm_h
new file mode 100644
index 0000000..37189ec
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_graphics_FontSelectionAlgorithm_h
@@ -0,0 +1,30 @@
1XXX libstdc++ from gcc-4.9.4 doesn't yet decorate std::min/std::max
2with constexpr
3
4Index: Source/WebCore/platform/graphics/FontSelectionAlgorithm.h
5--- Source/WebCore/platform/graphics/FontSelectionAlgorithm.h.orig
6+++ Source/WebCore/platform/graphics/FontSelectionAlgorithm.h
7@@ -49,7 +49,11 @@ class FontSelectionValue { (public)
8 explicit constexpr FontSelectionValue(float);
9
10 // Precision can be lost, but value will be clamped to the representable range.
11+#if defined(__GLIBCXX__) && __GLIBCXX__ <= 20160726L
12+ static inline FontSelectionValue clampFloat(float);
13+#else
14 static constexpr FontSelectionValue clampFloat(float);
15+#endif
16
17 // Since floats have 23 mantissa bits, every value can be represented losslessly.
18 constexpr operator float() const;
19@@ -125,7 +129,11 @@ constexpr FontSelectionValue FontSelectionValue::minim
20 return { std::numeric_limits<BackingType>::min(), RawTag::RawTag };
21 }
22
23+#if defined(__GLIBCXX__) && __GLIBCXX__ <= 20160726L
24+inline FontSelectionValue FontSelectionValue::clampFloat(float value)
25+#else
26 constexpr FontSelectionValue FontSelectionValue::clampFloat(float value)
27+#endif
28 {
29 return FontSelectionValue { std::max<float>(minimumValue(), std::min<float>(value, maximumValue())) };
30 }
diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_platform_network_DNS_h b/www/webkitgtk4/patches/patch-Source_WebCore_platform_network_DNS_h
new file mode 100644
index 0000000..03b0b8a
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WebCore_platform_network_DNS_h
@@ -0,0 +1,11 @@
1Index: Source/WebCore/platform/network/DNS.h
2--- Source/WebCore/platform/network/DNS.h.orig
3+++ Source/WebCore/platform/network/DNS.h
4@@ -34,6 +34,7 @@
5 #include <ws2tcpip.h>
6 #else
7 #include <netinet/in.h>
8+#include <sys/socket.h> /* AF_INET, AF_INET6 */
9 #endif
10
11 namespace WebCore {
diff --git a/www/webkitgtk4/patches/patch-Source_WebCore_rendering_RenderLayerBacking_h b/www/webkitgtk4/patches/patch-Source_WebCore_rendering_RenderLayerBacking_h
new file mode 100644
index 0000000..50a1830
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WebCore_rendering_RenderLayerBacking_h
@@ -0,0 +1,16 @@
1Index: Source/WebCore/rendering/RenderLayerBacking.h
2--- Source/WebCore/rendering/RenderLayerBacking.h.orig
3+++ Source/WebCore/rendering/RenderLayerBacking.h
4@@ -33,6 +33,12 @@
5 #include "RenderLayerCompositor.h"
6 #include "ScrollingCoordinator.h"
7
8+#if defined(_LP64)
9+# define __WORDSIZE 64
10+#else
11+# define __WORDSIZE 32
12+#endif
13+
14 namespace WebCore {
15
16 class EventRegionContext;
diff --git a/www/webkitgtk4/patches/patch-Source_WebDriver_PlatformGTK_cmake b/www/webkitgtk4/patches/patch-Source_WebDriver_PlatformGTK_cmake
new file mode 100644
index 0000000..66cbf89
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WebDriver_PlatformGTK_cmake
@@ -0,0 +1,17 @@
1Index: Source/WebDriver/PlatformGTK.cmake
2--- Source/WebDriver/PlatformGTK.cmake.orig
3+++ Source/WebDriver/PlatformGTK.cmake
4@@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_INSTALL_FULL_LIB
5 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
6 "${GLIB_INCLUDE_DIRS}"
7 "${LIBSOUP_INCLUDE_DIRS}"
8+ "${ICU_INCLUDE_DIRS}"
9 )
10
11 list(APPEND WebDriver_SOURCES
12@@ -18,4 +19,5 @@ list(APPEND WebDriver_SOURCES
13
14 list(APPEND WebDriver_LIBRARIES
15 ${LIBSOUP_LIBRARIES}
16+ ${ICU_LIBRARIES}
17 )
diff --git a/www/webkitgtk4/patches/patch-Source_WebKit_Platform_IPC_ArgumentCoders_h b/www/webkitgtk4/patches/patch-Source_WebKit_Platform_IPC_ArgumentCoders_h
new file mode 100644
index 0000000..c564b39
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WebKit_Platform_IPC_ArgumentCoders_h
@@ -0,0 +1,115 @@
1https://bugs.webkit.org/show_bug.cgi?id=245044
2REVERT:
3From: "zan@falconsigh.net" <zan@falconsigh.net@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
4Date: Tue, 12 Apr 2022 06:30:51 +0000
5Subject: [PATCH] [WK2] Simplify IPC encoding, decoding of tuples https://bugs.webkit.org/show_bug.cgi?id=239062
6
7Index: Source/WebKit/Platform/IPC/ArgumentCoders.h
8--- Source/WebKit/Platform/IPC/ArgumentCoders.h.orig
9+++ Source/WebKit/Platform/IPC/ArgumentCoders.h
10@@ -495,26 +495,38 @@ template<typename T> struct ArgumentCoder<Ref<T>> {
11 }
12 };
13
14-template<typename... Elements>
15+template<size_t index, typename... Elements>
16 struct TupleEncoder {
17 template<typename Encoder>
18 static void encode(Encoder& encoder, const std::tuple<Elements...>& tuple)
19 {
20- encode(encoder, tuple, std::index_sequence_for<Elements...> { });
21+ encoder << std::get<sizeof...(Elements) - index>(tuple);
22+ TupleEncoder<index - 1, Elements...>::encode(encoder, tuple);
23 }
24+};
25
26- template<typename Encoder, size_t... Indices>
27- static void encode(Encoder& encoder, const std::tuple<Elements...>& tuple, std::index_sequence<Indices...>)
28+template<typename... Elements>
29+struct TupleEncoder<0, Elements...> {
30+ template<typename Encoder>
31+ static void encode(Encoder&, const std::tuple<Elements...>&)
32 {
33- if constexpr (sizeof...(Indices) > 0)
34- (encoder << ... << std::get<Indices>(tuple));
35 }
36 };
37
38-template<typename... Elements> struct TupleDecoder;
39+template <typename T, typename... Elements, size_t... Indices>
40+auto tupleFromTupleAndObject(T&& object, std::tuple<Elements...>&& tuple, std::index_sequence<Indices...>)
41+{
42+ return std::make_tuple(WTFMove(object), WTFMove(std::get<Indices>(tuple))...);
43+}
44
45+template <typename T, typename... Elements>
46+auto tupleFromTupleAndObject(T&& object, std::tuple<Elements...>&& tuple)
47+{
48+ return tupleFromTupleAndObject(WTFMove(object), WTFMove(tuple), std::index_sequence_for<Elements...>());
49+}
50+
51 template<typename Type, typename... Types>
52-struct TupleDecoder<Type, Types...> {
53+struct TupleDecoderImpl {
54 template<typename Decoder>
55 static std::optional<std::tuple<Type, Types...>> decode(Decoder& decoder)
56 {
57@@ -523,16 +535,38 @@ struct TupleDecoder<Type, Types...> {
58 if (!optional)
59 return std::nullopt;
60
61- std::optional<std::tuple<Types...>> remainder = TupleDecoder<Types...>::decode(decoder);
62- if (!remainder)
63+ std::optional<std::tuple<Types...>> subTuple = TupleDecoderImpl<Types...>::decode(decoder);
64+ if (!subTuple)
65 return std::nullopt;
66
67- return std::tuple_cat(std::make_tuple(WTFMove(*optional)), WTFMove(*remainder));
68+ return tupleFromTupleAndObject(WTFMove(*optional), WTFMove(*subTuple));
69 }
70 };
71
72+template<typename Type>
73+struct TupleDecoderImpl<Type> {
74+ template<typename Decoder>
75+ static std::optional<std::tuple<Type>> decode(Decoder& decoder)
76+ {
77+ std::optional<Type> optional;
78+ decoder >> optional;
79+ if (!optional)
80+ return std::nullopt;
81+ return std::make_tuple(WTFMove(*optional));
82+ }
83+};
84+
85+template<size_t size, typename... Elements>
86+struct TupleDecoder {
87+ template<typename Decoder>
88+ static std::optional<std::tuple<Elements...>> decode(Decoder& decoder)
89+ {
90+ return TupleDecoderImpl<Elements...>::decode(decoder);
91+ }
92+};
93+
94 template<>
95-struct TupleDecoder<> {
96+struct TupleDecoder<0> {
97 template<typename Decoder>
98 static std::optional<std::tuple<>> decode(Decoder&)
99 {
100@@ -544,13 +578,13 @@ template<typename... Elements> struct ArgumentCoder<st
101 template<typename Encoder>
102 static void encode(Encoder& encoder, const std::tuple<Elements...>& tuple)
103 {
104- TupleEncoder<Elements...>::encode(encoder, tuple);
105+ TupleEncoder<sizeof...(Elements), Elements...>::encode(encoder, tuple);
106 }
107
108 template<typename Decoder>
109 static std::optional<std::tuple<Elements...>> decode(Decoder& decoder)
110 {
111- return TupleDecoder<Elements...>::decode(decoder);
112+ return TupleDecoder<sizeof...(Elements), Elements...>::decode(decoder);
113 }
114 };
115
diff --git a/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in b/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in
new file mode 100644
index 0000000..f3426ac
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk-web-extension_pc_in
@@ -0,0 +1,10 @@
1Index: Source/WebKit/gtk/webkit2gtk-web-extension.pc.in
2--- Source/WebKit/gtk/webkit2gtk-web-extension.pc.in.orig
3+++ Source/WebKit/gtk/webkit2gtk-web-extension.pc.in
4@@ -9,5 +9,5 @@ Description: Web content engine for GTK - web process
5 URL: https://webkitgtk.org
6 Version: @PROJECT_VERSION@
7 Requires: glib-2.0 @GTK_PC_NAME@ libsoup-@SOUP_API_VERSION@ javascriptcoregtk-@WEBKITGTK_API_VERSION@
8-Libs: -L${libdir} -lwebkit2gtk-@WEBKITGTK_API_VERSION@
9+Libs: -L${libdir} -lwebkit2gtk-@WEBKITGTK_API_VERSION@ -Wl,-z,wxneeded
10 Cflags: -I${includedir}/webkitgtk-@WEBKITGTK_API_VERSION@
diff --git a/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in b/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in
new file mode 100644
index 0000000..563d209
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WebKit_gtk_webkit2gtk_pc_in
@@ -0,0 +1,10 @@
1Index: Source/WebKit/gtk/webkit2gtk.pc.in
2--- Source/WebKit/gtk/webkit2gtk.pc.in.orig
3+++ Source/WebKit/gtk/webkit2gtk.pc.in
4@@ -9,5 +9,5 @@ Description: Web content engine for GTK
5 URL: https://webkitgtk.org
6 Version: @PROJECT_VERSION@
7 Requires: glib-2.0 @GTK_PC_NAME@ libsoup-@SOUP_API_VERSION@ javascriptcoregtk-@WEBKITGTK_API_VERSION@
8-Libs: -L${libdir} -lwebkit2gtk-@WEBKITGTK_API_VERSION@
9+Libs: -L${libdir} -lwebkit2gtk-@WEBKITGTK_API_VERSION@ -Wl,-z,wxneeded
10 Cflags: -I${includedir}/webkitgtk-@WEBKITGTK_API_VERSION@
diff --git a/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_cpp b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_cpp
new file mode 100644
index 0000000..107220b
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_cpp
@@ -0,0 +1,90 @@
1Index: Source/bmalloc/bmalloc/AvailableMemory.cpp
2--- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig
3+++ Source/bmalloc/bmalloc/AvailableMemory.cpp
4@@ -44,13 +44,15 @@
5 #import <mach/mach_error.h>
6 #import <math.h>
7 #elif BOS(UNIX)
8-#if BOS(FREEBSD) || BOS(LINUX)
9+#if BOS(OPENBSD)
10+#include <kvm.h>
11+#elif BOS(FREEBSD) || BOS(LINUX)
12 #include <sys/sysinfo.h>
13 #endif
14 #if BOS(LINUX)
15 #include <algorithm>
16 #include <fcntl.h>
17-#elif BOS(FREEBSD)
18+#elif BOS(FREEBSD) || BOS(OPENBSD)
19 #include "VMAllocate.h"
20 #include <sys/sysctl.h>
21 #include <sys/types.h>
22@@ -166,6 +168,24 @@ static size_t computeAvailableMemory()
23 if (!sysinfo(&info))
24 return info.totalram * info.mem_unit;
25 return availableMemoryGuess;
26+#elif BOS(OPENBSD)
27+ struct uvmexp uvmexp;
28+ size_t length;
29+ static int uvmexp_mib [] = { CTL_VM, VM_UVMEXP };
30+ long pages;
31+ long pageSize = sysconf(_SC_PAGE_SIZE);
32+ if (pageSize == -1)
33+ return availableMemoryGuess;
34+ length = sizeof (uvmexp);
35+ if (sysctl(uvmexp_mib, std::size(uvmexp_mib), &uvmexp, &length, NULL, 0) == 0)
36+ return uvmexp.npages * pageSize;
37+ else {
38+ bzero(&uvmexp, sizeof(length));
39+ pages = sysconf(_SC_PHYS_PAGES);
40+ if (pages == -1)
41+ return availableMemoryGuess;
42+ return pages * pageSize;
43+ }
44 #elif BOS(UNIX)
45 long pages = sysconf(_SC_PHYS_PAGES);
46 long pageSize = sysconf(_SC_PAGE_SIZE);
47@@ -180,14 +200,19 @@ static size_t computeAvailableMemory()
48 size_t availableMemory()
49 {
50 static size_t availableMemory;
51+#if BOS(OPENBSD)
52+ // We always calculate the available memory because we take care...
53+ availableMemory = computeAvailableMemory();
54+#else
55 static std::once_flag onceFlag;
56 std::call_once(onceFlag, [] {
57 availableMemory = computeAvailableMemory();
58 });
59+#endif
60 return availableMemory;
61 }
62
63-#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD)
64+#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) || BOS(OPENBSD)
65 MemoryStatus memoryStatus()
66 {
67 #if BPLATFORM(IOS_FAMILY)
68@@ -213,6 +238,22 @@ MemoryStatus memoryStatus()
69 size_t memoryFootprint = 0;
70 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
71 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
72+#elif BOS(OPENBSD)
73+ size_t memoryFootprint = 0, length;
74+ struct kinfo_proc *info;
75+ int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, getpid(), sizeof(struct kinfo_proc), 0 };
76+
77+ if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) == 0) {
78+ info = (struct kinfo_proc *)malloc(length);
79+ mib[5] = (length / sizeof(struct kinfo_proc));
80+ if (sysctl(mib, std::size(mib), info, &length, NULL, 0) == 0) {
81+ memoryFootprint = static_cast<size_t>(
82+ info->p_vm_tsize +
83+ info->p_vm_dsize +
84+ info->p_vm_ssize) * vmPageSize();
85+ }
86+ free(info);
87+ }
88 #endif
89
90 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
diff --git a/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h
new file mode 100644
index 0000000..fab7c0c
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_AvailableMemory_h
@@ -0,0 +1,21 @@
1Index: Source/bmalloc/bmalloc/AvailableMemory.h
2--- Source/bmalloc/bmalloc/AvailableMemory.h.orig
3+++ Source/bmalloc/bmalloc/AvailableMemory.h
4@@ -32,7 +32,7 @@ namespace bmalloc {
5
6 BEXPORT size_t availableMemory();
7
8-#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD)
9+#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) || BOS(OPENBSD)
10 struct MemoryStatus {
11 MemoryStatus(size_t memoryFootprint, double percentAvailableMemoryInUse)
12 : memoryFootprint(memoryFootprint)
13@@ -61,7 +61,7 @@ inline double percentAvailableMemoryInUse()
14
15 inline bool isUnderMemoryPressure()
16 {
17-#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD)
18+#if BPLATFORM(IOS_FAMILY) || BOS(LINUX) || BOS(FREEBSD) || BOS(OPENBSD)
19 return percentAvailableMemoryInUse() > memoryPressureThreshold;
20 #else
21 return false;
diff --git a/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_BPlatform_h b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_BPlatform_h
new file mode 100644
index 0000000..076f6f3
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_bmalloc_bmalloc_BPlatform_h
@@ -0,0 +1,14 @@
1Index: Source/bmalloc/bmalloc/BPlatform.h
2--- Source/bmalloc/bmalloc/BPlatform.h.orig
3+++ Source/bmalloc/bmalloc/BPlatform.h
4@@ -52,6 +52,10 @@
5 #define BOS_FREEBSD 1
6 #endif
7
8+#if defined(__OpenBSD__)
9+#define BOS_OPENBSD 1
10+#endif
11+
12 #if defined(WIN32) || defined(_WIN32)
13 #define BOS_WINDOWS 1
14 #endif
diff --git a/www/webkitgtk4/patches/patch-Source_cmake_OptionsCommon_cmake b/www/webkitgtk4/patches/patch-Source_cmake_OptionsCommon_cmake
new file mode 100644
index 0000000..cb01e64
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_cmake_OptionsCommon_cmake
@@ -0,0 +1,16 @@
1Put the internal library path first so that we can
2build with an older webkitgtk4 package installed.
3
4Index: Source/cmake/OptionsCommon.cmake
5--- Source/cmake/OptionsCommon.cmake.orig
6+++ Source/cmake/OptionsCommon.cmake
7@@ -180,6 +180,9 @@ if (NOT PORT STREQUAL "GTK" AND NOT PORT STREQUAL "WPE
8 set(LIBEXEC_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Absolute path to install executables executed by the library")
9 endif ()
10
11+# make sure that the internal library dir is the first in the path
12+link_directories("${CMAKE_BINARY_DIR}/lib")
13+
14 # Check whether features.h header exists.
15 # Including glibc's one defines __GLIBC__, that is used in Platform.h
16 WEBKIT_CHECK_HAVE_INCLUDE(HAVE_FEATURES_H features.h)
diff --git a/www/webkitgtk4/patches/patch-Source_cmake_WebKitCommon_cmake b/www/webkitgtk4/patches/patch-Source_cmake_WebKitCommon_cmake
new file mode 100644
index 0000000..bb632b0
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_cmake_WebKitCommon_cmake
@@ -0,0 +1,43 @@
1Index: Source/cmake/WebKitCommon.cmake
2--- Source/cmake/WebKitCommon.cmake.orig
3+++ Source/cmake/WebKitCommon.cmake
4@@ -111,7 +111,7 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
5 endif ()
6 elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86|x86)")
7 set(WTF_CPU_X86 1)
8- elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc")
9+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(ppc|powerpc)")
10 set(WTF_CPU_PPC 1)
11 elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64")
12 set(WTF_CPU_PPC64 1)
13@@ -119,6 +119,8 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
14 set(WTF_CPU_PPC64LE 1)
15 elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^riscv64")
16 set(WTF_CPU_RISCV64 1)
17+ elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "sparc64")
18+ set(WTF_CPU_SPARC64 1)
19 else ()
20 set(WTF_CPU_UNKNOWN 1)
21 endif ()
22@@ -190,9 +192,9 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
23 # We cannot check for RUBY_FOUND because it is set only when the full package is installed and
24 # the only thing we need is the interpreter. Unlike Python, cmake does not provide a macro
25 # for finding only the Ruby interpreter.
26- find_package(Ruby 1.9)
27- if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS 1.9)
28- message(FATAL_ERROR "Ruby 1.9 or higher is required.")
29+ find_package(Ruby ${MODRUBY_LIBREV})
30+ if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS ${MODRUBY_LIBREV})
31+ message(FATAL_ERROR "Ruby ${MODRUBY_LIBREV} or higher is required.")
32 endif ()
33
34 # -----------------------------------------------------------------------------
35@@ -204,7 +206,7 @@ if (NOT HAS_RUN_WEBKIT_COMMON)
36 include(CheckCXXCompilerFlag)
37 include(CheckCXXSourceCompiles)
38 include(CheckFunctionExists)
39- include(CheckIncludeFile)
40+ include(CheckIncludeFiles)
41 include(CheckSymbolExists)
42 include(CheckStructHasMember)
43 include(CheckTypeSize)
diff --git a/www/webkitgtk4/patches/patch-Source_cmake_WebKitCompilerFlags_cmake b/www/webkitgtk4/patches/patch-Source_cmake_WebKitCompilerFlags_cmake
new file mode 100644
index 0000000..621a404
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_cmake_WebKitCompilerFlags_cmake
@@ -0,0 +1,16 @@
1Index: Source/cmake/WebKitCompilerFlags.cmake
2--- Source/cmake/WebKitCompilerFlags.cmake.orig
3+++ Source/cmake/WebKitCompilerFlags.cmake
4@@ -252,9 +252,9 @@ if (NOT MSVC)
5 string(REGEX MATCHALL "-fsanitize=[^ ]*" ENABLED_COMPILER_SANITIZERS ${CMAKE_CXX_FLAGS})
6 endif ()
7
8-if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
9- set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
10-endif ()
11+#if (UNIX AND NOT APPLE AND NOT ENABLED_COMPILER_SANITIZERS)
12+# set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
13+#endif ()
14
15
16 if (MSVC)
diff --git a/www/webkitgtk4/patches/patch-Source_cmake_WebKitFeatures_cmake b/www/webkitgtk4/patches/patch-Source_cmake_WebKitFeatures_cmake
new file mode 100644
index 0000000..944d902
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_cmake_WebKitFeatures_cmake
@@ -0,0 +1,12 @@
1Index: Source/cmake/WebKitFeatures.cmake
2--- Source/cmake/WebKitFeatures.cmake.orig
3+++ Source/cmake/WebKitFeatures.cmake
4@@ -443,7 +443,7 @@ macro(CREATE_CONFIGURATION_HEADER)
5 endmacro()
6
7 macro(WEBKIT_CHECK_HAVE_INCLUDE _variable _header)
8- check_include_file(${_header} ${_variable}_value)
9+ check_include_files("${_header}" ${_variable}_value)
10 SET_AND_EXPOSE_TO_BUILD(${_variable} ${${_variable}_value})
11 endmacro()
12
diff --git a/www/webkitgtk4/pkg/CVS/Entries b/www/webkitgtk4/pkg/CVS/Entries
new file mode 100644
index 0000000..b811f9e
--- /dev/null
+++ b/www/webkitgtk4/pkg/CVS/Entries
@@ -0,0 +1,5 @@
1/DESCR/1.2/Sat Sep 3 07:51:54 2022//
2/PFRAG.no-webkitgtk50/1.1/Sat Sep 17 08:13:54 2022//
3/PFRAG.webkitgtk50/1.1/Sat Sep 17 08:13:54 2022//
4/PLIST/1.28/Sat Sep 17 08:13:54 2022//
5D
diff --git a/www/webkitgtk4/pkg/CVS/Repository b/www/webkitgtk4/pkg/CVS/Repository
new file mode 100644
index 0000000..5d2cc25
--- /dev/null
+++ b/www/webkitgtk4/pkg/CVS/Repository
@@ -0,0 +1 @@
ports/www/webkitgtk4/pkg
diff --git a/www/webkitgtk4/pkg/CVS/Root b/www/webkitgtk4/pkg/CVS/Root
new file mode 100644
index 0000000..3811072
--- /dev/null
+++ b/www/webkitgtk4/pkg/CVS/Root
@@ -0,0 +1 @@
/cvs
diff --git a/www/webkitgtk4/pkg/DESCR b/www/webkitgtk4/pkg/DESCR
new file mode 100644
index 0000000..abbc4b2
--- /dev/null
+++ b/www/webkitgtk4/pkg/DESCR
@@ -0,0 +1,3 @@
1WebKitGTK is a full-featured port of the WebKit rendering engine, suitable for
2projects requiring any kind of web integration, from hybrid HTML/CSS
3applications to full-fledged web browsers.
diff --git a/www/webkitgtk4/pkg/PLIST b/www/webkitgtk4/pkg/PLIST
new file mode 100644
index 0000000..e0e4ad1
--- /dev/null
+++ b/www/webkitgtk4/pkg/PLIST
@@ -0,0 +1,285 @@
1@conflict webkitgtk4-*
2include/webkitgtk-${API}/
3include/webkitgtk-${API}/JavaScriptCore/
4include/webkitgtk-${API}/JavaScriptCore/JSBase.h
5include/webkitgtk-${API}/JavaScriptCore/JSContextRef.h
6include/webkitgtk-${API}/JavaScriptCore/JSObjectRef.h
7include/webkitgtk-${API}/JavaScriptCore/JSStringRef.h
8include/webkitgtk-${API}/JavaScriptCore/JSTypedArray.h
9include/webkitgtk-${API}/JavaScriptCore/JSValueRef.h
10include/webkitgtk-${API}/JavaScriptCore/JavaScript.h
11include/webkitgtk-${API}/JavaScriptCore/WebKitAvailability.h
12include/webkitgtk-${API}/jsc/
13include/webkitgtk-${API}/jsc/JSCAutocleanups.h
14include/webkitgtk-${API}/jsc/JSCClass.h
15include/webkitgtk-${API}/jsc/JSCContext.h
16include/webkitgtk-${API}/jsc/JSCDefines.h
17include/webkitgtk-${API}/jsc/JSCException.h
18include/webkitgtk-${API}/jsc/JSCOptions.h
19include/webkitgtk-${API}/jsc/JSCValue.h
20include/webkitgtk-${API}/jsc/JSCVersion.h
21include/webkitgtk-${API}/jsc/JSCVirtualMachine.h
22include/webkitgtk-${API}/jsc/JSCWeakValue.h
23include/webkitgtk-${API}/jsc/jsc.h
24include/webkitgtk-${API}/webkit2/
25include/webkitgtk-${API}/webkit2/WebKitApplicationInfo.h
26include/webkitgtk-${API}/webkit2/WebKitAuthenticationRequest.h
27include/webkitgtk-${API}/webkit2/WebKitAutocleanups.h
28include/webkitgtk-${API}/webkit2/WebKitAutomationSession.h
29include/webkitgtk-${API}/webkit2/WebKitBackForwardList.h
30include/webkitgtk-${API}/webkit2/WebKitBackForwardListItem.h
31include/webkitgtk-${API}/webkit2/WebKitColorChooserRequest.h
32include/webkitgtk-${API}/webkit2/WebKitConsoleMessage.h
33include/webkitgtk-${API}/webkit2/WebKitContextMenu.h
34include/webkitgtk-${API}/webkit2/WebKitContextMenuActions.h
35include/webkitgtk-${API}/webkit2/WebKitContextMenuItem.h
36include/webkitgtk-${API}/webkit2/WebKitCookieManager.h
37include/webkitgtk-${API}/webkit2/WebKitCredential.h
38include/webkitgtk-${API}/webkit2/WebKitDefines.h
39include/webkitgtk-${API}/webkit2/WebKitDeviceInfoPermissionRequest.h
40include/webkitgtk-${API}/webkit2/WebKitDownload.h
41include/webkitgtk-${API}/webkit2/WebKitEditingCommands.h
42include/webkitgtk-${API}/webkit2/WebKitEditorState.h
43include/webkitgtk-${API}/webkit2/WebKitEnumTypes.h
44include/webkitgtk-${API}/webkit2/WebKitError.h
45include/webkitgtk-${API}/webkit2/WebKitFaviconDatabase.h
46include/webkitgtk-${API}/webkit2/WebKitFileChooserRequest.h
47include/webkitgtk-${API}/webkit2/WebKitFindController.h
48include/webkitgtk-${API}/webkit2/WebKitFormSubmissionRequest.h
49include/webkitgtk-${API}/webkit2/WebKitForwardDeclarations.h
50include/webkitgtk-${API}/webkit2/WebKitFrame.h
51include/webkitgtk-${API}/webkit2/WebKitGeolocationManager.h
52include/webkitgtk-${API}/webkit2/WebKitGeolocationPermissionRequest.h
53include/webkitgtk-${API}/webkit2/WebKitHitTestResult.h
54include/webkitgtk-${API}/webkit2/WebKitInputMethodContext.h
55include/webkitgtk-${API}/webkit2/WebKitInstallMissingMediaPluginsPermissionRequest.h
56include/webkitgtk-${API}/webkit2/WebKitJavascriptResult.h
57include/webkitgtk-${API}/webkit2/WebKitMediaKeySystemPermissionRequest.h
58include/webkitgtk-${API}/webkit2/WebKitMemoryPressureSettings.h
59include/webkitgtk-${API}/webkit2/WebKitMimeInfo.h
60include/webkitgtk-${API}/webkit2/WebKitNavigationAction.h
61include/webkitgtk-${API}/webkit2/WebKitNavigationPolicyDecision.h
62include/webkitgtk-${API}/webkit2/WebKitNetworkProxySettings.h
63include/webkitgtk-${API}/webkit2/WebKitNotification.h
64include/webkitgtk-${API}/webkit2/WebKitNotificationPermissionRequest.h
65include/webkitgtk-${API}/webkit2/WebKitOptionMenu.h
66include/webkitgtk-${API}/webkit2/WebKitOptionMenuItem.h
67include/webkitgtk-${API}/webkit2/WebKitPermissionRequest.h
68include/webkitgtk-${API}/webkit2/WebKitPlugin.h
69include/webkitgtk-${API}/webkit2/WebKitPointerLockPermissionRequest.h
70include/webkitgtk-${API}/webkit2/WebKitPolicyDecision.h
71include/webkitgtk-${API}/webkit2/WebKitPrintCustomWidget.h
72include/webkitgtk-${API}/webkit2/WebKitPrintOperation.h
73include/webkitgtk-${API}/webkit2/WebKitResponsePolicyDecision.h
74include/webkitgtk-${API}/webkit2/WebKitScriptDialog.h
75include/webkitgtk-${API}/webkit2/WebKitScriptWorld.h
76include/webkitgtk-${API}/webkit2/WebKitSecurityManager.h
77include/webkitgtk-${API}/webkit2/WebKitSecurityOrigin.h
78include/webkitgtk-${API}/webkit2/WebKitSettings.h
79include/webkitgtk-${API}/webkit2/WebKitURIRequest.h
80include/webkitgtk-${API}/webkit2/WebKitURIResponse.h
81include/webkitgtk-${API}/webkit2/WebKitURISchemeRequest.h
82include/webkitgtk-${API}/webkit2/WebKitURISchemeResponse.h
83include/webkitgtk-${API}/webkit2/WebKitURIUtilities.h
84include/webkitgtk-${API}/webkit2/WebKitUserContent.h
85include/webkitgtk-${API}/webkit2/WebKitUserContentFilterStore.h
86include/webkitgtk-${API}/webkit2/WebKitUserContentManager.h
87include/webkitgtk-${API}/webkit2/WebKitUserMediaPermissionRequest.h
88include/webkitgtk-${API}/webkit2/WebKitUserMessage.h
89include/webkitgtk-${API}/webkit2/WebKitVersion.h
90include/webkitgtk-${API}/webkit2/WebKitWebContext.h
91include/webkitgtk-${API}/webkit2/WebKitWebEditor.h
92include/webkitgtk-${API}/webkit2/WebKitWebExtension.h
93include/webkitgtk-${API}/webkit2/WebKitWebExtensionAutocleanups.h
94include/webkitgtk-${API}/webkit2/WebKitWebHitTestResult.h
95include/webkitgtk-${API}/webkit2/WebKitWebInspector.h
96include/webkitgtk-${API}/webkit2/WebKitWebPage.h
97include/webkitgtk-${API}/webkit2/WebKitWebProcessEnumTypes.h
98include/webkitgtk-${API}/webkit2/WebKitWebResource.h
99include/webkitgtk-${API}/webkit2/WebKitWebView.h
100include/webkitgtk-${API}/webkit2/WebKitWebViewBase.h
101include/webkitgtk-${API}/webkit2/WebKitWebViewSessionState.h
102include/webkitgtk-${API}/webkit2/WebKitWebsiteData.h
103include/webkitgtk-${API}/webkit2/WebKitWebsiteDataAccessPermissionRequest.h
104include/webkitgtk-${API}/webkit2/WebKitWebsiteDataManager.h
105include/webkitgtk-${API}/webkit2/WebKitWebsitePolicies.h
106include/webkitgtk-${API}/webkit2/WebKitWindowProperties.h
107include/webkitgtk-${API}/webkit2/webkit-web-extension.h
108include/webkitgtk-${API}/webkit2/webkit2.h
109include/webkitgtk-${API}/webkitdom/
110include/webkitgtk-${API}/webkitdom/WebKitDOMAttr.h
111include/webkitgtk-${API}/webkitdom/WebKitDOMBlob.h
112include/webkitgtk-${API}/webkitdom/WebKitDOMCDATASection.h
113include/webkitgtk-${API}/webkitdom/WebKitDOMCSSRule.h
114include/webkitgtk-${API}/webkitdom/WebKitDOMCSSRuleList.h
115include/webkitgtk-${API}/webkitdom/WebKitDOMCSSStyleDeclaration.h
116include/webkitgtk-${API}/webkitdom/WebKitDOMCSSStyleSheet.h
117include/webkitgtk-${API}/webkitdom/WebKitDOMCSSValue.h
118include/webkitgtk-${API}/webkitdom/WebKitDOMCharacterData.h
119include/webkitgtk-${API}/webkitdom/WebKitDOMClientRect.h
120include/webkitgtk-${API}/webkitdom/WebKitDOMClientRectList.h
121include/webkitgtk-${API}/webkitdom/WebKitDOMComment.h
122include/webkitgtk-${API}/webkitdom/WebKitDOMCustom.h
123include/webkitgtk-${API}/webkitdom/WebKitDOMCustomUnstable.h
124include/webkitgtk-${API}/webkitdom/WebKitDOMDOMImplementation.h
125include/webkitgtk-${API}/webkitdom/WebKitDOMDOMSelection.h
126include/webkitgtk-${API}/webkitdom/WebKitDOMDOMTokenList.h
127include/webkitgtk-${API}/webkitdom/WebKitDOMDOMWindow.h
128include/webkitgtk-${API}/webkitdom/WebKitDOMDOMWindowUnstable.h
129include/webkitgtk-${API}/webkitdom/WebKitDOMDeprecated.h
130include/webkitgtk-${API}/webkitdom/WebKitDOMDocument.h
131include/webkitgtk-${API}/webkitdom/WebKitDOMDocumentFragment.h
132include/webkitgtk-${API}/webkitdom/WebKitDOMDocumentFragmentUnstable.h
133include/webkitgtk-${API}/webkitdom/WebKitDOMDocumentType.h
134include/webkitgtk-${API}/webkitdom/WebKitDOMDocumentUnstable.h
135include/webkitgtk-${API}/webkitdom/WebKitDOMElement.h
136include/webkitgtk-${API}/webkitdom/WebKitDOMElementUnstable.h
137include/webkitgtk-${API}/webkitdom/WebKitDOMEvent.h
138include/webkitgtk-${API}/webkitdom/WebKitDOMEventTarget.h
139include/webkitgtk-${API}/webkitdom/WebKitDOMFile.h
140include/webkitgtk-${API}/webkitdom/WebKitDOMFileList.h
141include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLAnchorElement.h
142include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLAppletElement.h
143include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLAreaElement.h
144include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLBRElement.h
145include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLBaseElement.h
146include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLBodyElement.h
147include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLButtonElement.h
148include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLCanvasElement.h
149include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLCollection.h
150include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLDListElement.h
151include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLDirectoryElement.h
152include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLDivElement.h
153include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLDocument.h
154include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLElement.h
155include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLElementUnstable.h
156include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLEmbedElement.h
157include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLFieldSetElement.h
158include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLFontElement.h
159include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLFormElement.h
160include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLFrameElement.h
161include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLFrameSetElement.h
162include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLHRElement.h
163include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLHeadElement.h
164include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLHeadingElement.h
165include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLHtmlElement.h
166include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLIFrameElement.h
167include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLImageElement.h
168include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLInputElement.h
169include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLLIElement.h
170include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLLabelElement.h
171include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLLegendElement.h
172include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLLinkElement.h
173include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLMapElement.h
174include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLMarqueeElement.h
175include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLMenuElement.h
176include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLMetaElement.h
177include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLModElement.h
178include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLOListElement.h
179include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLObjectElement.h
180include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLOptGroupElement.h
181include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLOptionElement.h
182include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLOptionsCollection.h
183include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLParagraphElement.h
184include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLParamElement.h
185include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLPreElement.h
186include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLQuoteElement.h
187include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLScriptElement.h
188include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLSelectElement.h
189include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLStyleElement.h
190include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableCaptionElement.h
191include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableCellElement.h
192include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableColElement.h
193include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableElement.h
194include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableRowElement.h
195include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTableSectionElement.h
196include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTextAreaElement.h
197include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLTitleElement.h
198include/webkitgtk-${API}/webkitdom/WebKitDOMHTMLUListElement.h
199include/webkitgtk-${API}/webkitdom/WebKitDOMKeyboardEvent.h
200include/webkitgtk-${API}/webkitdom/WebKitDOMMediaList.h
201include/webkitgtk-${API}/webkitdom/WebKitDOMMouseEvent.h
202include/webkitgtk-${API}/webkitdom/WebKitDOMNamedNodeMap.h
203include/webkitgtk-${API}/webkitdom/WebKitDOMNode.h
204include/webkitgtk-${API}/webkitdom/WebKitDOMNodeFilter.h
205include/webkitgtk-${API}/webkitdom/WebKitDOMNodeIterator.h
206include/webkitgtk-${API}/webkitdom/WebKitDOMNodeList.h
207include/webkitgtk-${API}/webkitdom/WebKitDOMObject.h
208include/webkitgtk-${API}/webkitdom/WebKitDOMProcessingInstruction.h
209include/webkitgtk-${API}/webkitdom/WebKitDOMRange.h
210include/webkitgtk-${API}/webkitdom/WebKitDOMRangeUnstable.h
211include/webkitgtk-${API}/webkitdom/WebKitDOMStyleSheet.h
212include/webkitgtk-${API}/webkitdom/WebKitDOMStyleSheetList.h
213include/webkitgtk-${API}/webkitdom/WebKitDOMText.h
214include/webkitgtk-${API}/webkitdom/WebKitDOMTreeWalker.h
215include/webkitgtk-${API}/webkitdom/WebKitDOMUIEvent.h
216include/webkitgtk-${API}/webkitdom/WebKitDOMWheelEvent.h
217include/webkitgtk-${API}/webkitdom/WebKitDOMXPathExpression.h
218include/webkitgtk-${API}/webkitdom/WebKitDOMXPathNSResolver.h
219include/webkitgtk-${API}/webkitdom/WebKitDOMXPathResult.h
220include/webkitgtk-${API}/webkitdom/webkitdom.h
221include/webkitgtk-${API}/webkitdom/webkitdomautocleanups.h
222include/webkitgtk-${API}/webkitdom/webkitdomdefines.h
223@lib lib/libjavascriptcoregtk-${API}.so.${LIBjavascriptcoregtk-${API}_VERSION}
224@lib lib/libwebkit2gtk-${API}.so.${LIBwebkit2gtk-${API}_VERSION}
225lib/pkgconfig/javascriptcoregtk-${API}.pc
226lib/pkgconfig/webkit2gtk-${API}.pc
227lib/pkgconfig/webkit2gtk-web-extension-${API}.pc
228lib/webkit2gtk-${API}/
229lib/webkit2gtk-${API}/injected-bundle/
230@so lib/webkit2gtk-${API}/injected-bundle/libwebkit2gtkinjectedbundle.so
231libexec/webkit2gtk-${API}/
232@bin libexec/webkit2gtk-${API}/MiniBrowser
233@bin libexec/webkit2gtk-${API}/WebKitNetworkProcess
234@bin libexec/webkit2gtk-${API}/WebKitWebProcess
235@bin libexec/webkit2gtk-${API}/jsc
236share/locale/ar/LC_MESSAGES/WebKit2GTK-${API}.mo
237share/locale/as/LC_MESSAGES/WebKit2GTK-${API}.mo
238share/locale/bg/LC_MESSAGES/WebKit2GTK-${API}.mo
239share/locale/ca/LC_MESSAGES/WebKit2GTK-${API}.mo
240share/locale/cs/LC_MESSAGES/WebKit2GTK-${API}.mo
241share/locale/da/LC_MESSAGES/WebKit2GTK-${API}.mo
242share/locale/de/LC_MESSAGES/WebKit2GTK-${API}.mo
243share/locale/el/LC_MESSAGES/WebKit2GTK-${API}.mo
244share/locale/en_CA/LC_MESSAGES/WebKit2GTK-${API}.mo
245share/locale/en_GB/LC_MESSAGES/WebKit2GTK-${API}.mo
246share/locale/eo/LC_MESSAGES/WebKit2GTK-${API}.mo
247share/locale/es/LC_MESSAGES/WebKit2GTK-${API}.mo
248share/locale/et/LC_MESSAGES/WebKit2GTK-${API}.mo
249share/locale/eu/LC_MESSAGES/WebKit2GTK-${API}.mo
250share/locale/fi/LC_MESSAGES/WebKit2GTK-${API}.mo
251share/locale/fr/LC_MESSAGES/WebKit2GTK-${API}.mo
252share/locale/gl/LC_MESSAGES/WebKit2GTK-${API}.mo
253share/locale/gu/LC_MESSAGES/WebKit2GTK-${API}.mo
254share/locale/he/LC_MESSAGES/WebKit2GTK-${API}.mo
255share/locale/hi/LC_MESSAGES/WebKit2GTK-${API}.mo
256share/locale/hr/LC_MESSAGES/WebKit2GTK-${API}.mo
257share/locale/hu/LC_MESSAGES/WebKit2GTK-${API}.mo
258share/locale/id/LC_MESSAGES/WebKit2GTK-${API}.mo
259share/locale/it/LC_MESSAGES/WebKit2GTK-${API}.mo
260share/locale/ja/LC_MESSAGES/WebKit2GTK-${API}.mo
261share/locale/kn/LC_MESSAGES/WebKit2GTK-${API}.mo
262share/locale/ko/LC_MESSAGES/WebKit2GTK-${API}.mo
263share/locale/lt/LC_MESSAGES/WebKit2GTK-${API}.mo
264share/locale/lv/LC_MESSAGES/WebKit2GTK-${API}.mo
265share/locale/ml/LC_MESSAGES/WebKit2GTK-${API}.mo
266share/locale/mr/LC_MESSAGES/WebKit2GTK-${API}.mo
267share/locale/nb/LC_MESSAGES/WebKit2GTK-${API}.mo
268share/locale/nl/LC_MESSAGES/WebKit2GTK-${API}.mo
269share/locale/or/LC_MESSAGES/WebKit2GTK-${API}.mo
270share/locale/pa/LC_MESSAGES/WebKit2GTK-${API}.mo
271share/locale/pl/LC_MESSAGES/WebKit2GTK-${API}.mo
272share/locale/pt/LC_MESSAGES/WebKit2GTK-${API}.mo
273share/locale/pt_BR/LC_MESSAGES/WebKit2GTK-${API}.mo
274share/locale/ro/LC_MESSAGES/WebKit2GTK-${API}.mo
275share/locale/ru/LC_MESSAGES/WebKit2GTK-${API}.mo
276share/locale/sl/LC_MESSAGES/WebKit2GTK-${API}.mo
277share/locale/sr/LC_MESSAGES/WebKit2GTK-${API}.mo
278share/locale/sr@latin/LC_MESSAGES/WebKit2GTK-${API}.mo
279share/locale/sv/LC_MESSAGES/WebKit2GTK-${API}.mo
280share/locale/ta/LC_MESSAGES/WebKit2GTK-${API}.mo
281share/locale/te/LC_MESSAGES/WebKit2GTK-${API}.mo
282share/locale/tr/LC_MESSAGES/WebKit2GTK-${API}.mo
283share/locale/uk/LC_MESSAGES/WebKit2GTK-${API}.mo
284share/locale/vi/LC_MESSAGES/WebKit2GTK-${API}.mo
285share/locale/zh_CN/LC_MESSAGES/WebKit2GTK-${API}.mo