Ravenports generated: 26 Oct 2020 03:14
[ravenports.git] / bucket_58 / webkit2
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               webkit2
4 VERSION=                2.30.2
5 KEYWORDS=               www
6 VARIANTS=               gtk3
7 SDESC[gtk3]=            Opensource browser engine using the GTK+ 3 toolkit
8 HOMEPAGE=               https://www.webkitgtk.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://www.webkitgtk.org/releases/
13                         https://fossies.org/linux/www/
14 DISTFILE[1]=            webkitgtk-2.30.2.tar.xz:main
15 DF_INDEX=               1
16 SPKGS[gtk3]=            complete
17                         primary
18                         nls
19
20 OPTIONS_AVAILABLE=      GTK3
21 OPTIONS_STANDARD=       none
22 VOPTS[gtk3]=            GTK3=ON
23
24 BUILD_DEPENDS=          gperf:primary:standard
25                         autoselect-python:single:standard
26 BUILDRUN_DEPENDS=       enchant:single:standard
27                         fontconfig:primary:standard
28                         freetype:primary:standard
29                         WebP:single:standard
30                         libsecret:primary:standard
31                         libnotify:primary:standard
32                         hyphen:single:standard
33                         harfbuzz:icu:standard
34                         icu:single:standard
35                         libsoup:primary:standard
36                         libgcrypt:single:standard
37                         gnutls:primary:standard
38                         libtasn1:primary:standard
39                         geoclue:single:standard
40                         woff2:single:standard
41                         gstreamer1-plugins-base:primary:standard
42                         openjpeg:single:standard
43
44 USES=                   png mesa cmake pkgconfig sqlite bison perl:build
45                         python:build ruby:build gettext-tools cpe
46 GNOME_COMPONENTS=       gtk3 gdkpixbuf introspection libxslt
47 XORG_COMPONENTS=        x11 xcomposite xdamage xext xrender xt ice
48
49 DISTNAME=               webkitgtk-2.30.2
50
51 LICENSE=                GPLv2+:primary BSD3CLAUSE:primary
52 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
53 LICENSE_FILE=           GPLv2+:stock
54                         BSD3CLAUSE:{{WRKDIR}}/LICENSE_BSD
55 LICENSE_AWK=            BSD3CLAUSE:"^$$"
56                         TERMS:"^$$"
57 LICENSE_SOURCE=         BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
58                         TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
59 LICENSE_SCHEME=         multi
60
61 CPE_PRODUCT=            webkitgtk
62 CPE_VENDOR=             webkitgtk
63 FPC_EQUIVALENT=         www/webkit2-gtk3
64
65 CONFIGURE_ENV=          XDG_CACHE_HOME={{WRKDIR}}
66
67 INSTALL_TARGET=         install
68 SOVERSION=              37.49.6
69 PLIST_SUB=              JSSOVERSION=18.17.10
70                         JSSOMAJOR=18
71                         WKAPI=4.0
72                         WKAPIMAJOR=4
73
74 CXXFLAGS=               -DFIXED_EXECUTABLE_MEMORY_POOL_SIZE_IN_MB=32
75 CMAKE_ARGS=             -DPORT=GTK
76                         -DENABLE_GEOLOCATION:BOOL=ON
77                         -DENABLE_GLES2:BOOL=ON
78                         -DENABLE_MINIBROWSER:BOOL=ON
79                         -DENABLE_WAYLAND_TARGET:BOOL=OFF
80                         -DENABLE_BUBBLEWRAP_SANDBOX:BOOL=OFF
81                         -DSUPPRESS_ASSERT:BOOL=ON
82                         -DUSE_SYSTEMD:BOOL=OFF
83                         -DUSE_GSTREAMER_GL:BOOL=OFF
84
85 [GTK3].DESCRIPTION=                     Build GTK+3 variant
86 [GTK3].MAKEFILE_ON=                     BROWSER_PLUGIN_DIR={{LOCALBASE}}/lib/browser_plugins/symlinks/webkit-gtk3
87
88 post-patch:
89         ${REINPLACE_CMD} -e 's|/usr/lib/browser/plugins|${BROWSER_PLUGINS_DIR}|' \
90                 ${WRKSRC}/Source/WebKit/Shared/Plugins/unix/PluginSearchPath.cpp
91
92 post-install:
93         (cd ${STAGEDIR}${PREFIX}/bin && \
94          ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4 && \
95          ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4)
96         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
97         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
98         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
99         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
100
101 [FILE:576:descriptions/desc.primary]
102 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
103 for projects requiring any kind of web integration, from hybrid HTML/CSS
104 applications to full-fledged web browsers. It offers WebKit's full
105 functionality and is useful in a wide range of systems from desktop
106 computers to embedded systems like phones, tablets, and televisions.
107
108 WebKitGTK+ is made by a lively community of developers and designers,
109 who hope to bring the web platform to everyone. It's the official web
110 engine of the GNOME platform and is used in browsers such as Epiphany
111 and Midori.
112
113
114 [FILE:102:distinfo]
115 c467e0bc2bc610c2570928e3fd63cedaadc4719cbf9b04aa99f79dd71ad5682a     22308908 webkitgtk-2.30.2.tar.xz
116
117
118 [FILE:6298:manifests/plist.primary]
119 bin/
120  MiniBrowser-%%WKAPIMAJOR%%
121  WebKitWebDriver
122  jsc-%%WKAPIMAJOR%%
123 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
124  JSBase.h
125  JSContextRef.h
126  JSObjectRef.h
127  JSStringRef.h
128  JSTypedArray.h
129  JSValueRef.h
130  JavaScript.h
131  WebKitAvailability.h
132 include/webkitgtk-%%WKAPI%%/jsc/
133  JSCAutocleanups.h
134  JSCClass.h
135  JSCContext.h
136  JSCDefines.h
137  JSCException.h
138  JSCOptions.h
139  JSCValue.h
140  JSCVersion.h
141  JSCVirtualMachine.h
142  JSCWeakValue.h
143  jsc.h
144 include/webkitgtk-%%WKAPI%%/webkit2/
145  WebKitApplicationInfo.h
146  WebKitAuthenticationRequest.h
147  WebKitAutocleanups.h
148  WebKitAutomationSession.h
149  WebKitBackForwardList.h
150  WebKitBackForwardListItem.h
151  WebKitColorChooserRequest.h
152  WebKitConsoleMessage.h
153  WebKitContextMenu.h
154  WebKitContextMenuActions.h
155  WebKitContextMenuItem.h
156  WebKitCookieManager.h
157  WebKitCredential.h
158  WebKitDefines.h
159  WebKitDeviceInfoPermissionRequest.h
160  WebKitDownload.h
161  WebKitEditingCommands.h
162  WebKitEditorState.h
163  WebKitEnumTypes.h
164  WebKitError.h
165  WebKitFaviconDatabase.h
166  WebKitFileChooserRequest.h
167  WebKitFindController.h
168  WebKitFormSubmissionRequest.h
169  WebKitForwardDeclarations.h
170  WebKitFrame.h
171  WebKitGeolocationManager.h
172  WebKitGeolocationPermissionRequest.h
173  WebKitHitTestResult.h
174  WebKitInputMethodContext.h
175  WebKitInstallMissingMediaPluginsPermissionRequest.h
176  WebKitJavascriptResult.h
177  WebKitMimeInfo.h
178  WebKitNavigationAction.h
179  WebKitNavigationPolicyDecision.h
180  WebKitNetworkProxySettings.h
181  WebKitNotification.h
182  WebKitNotificationPermissionRequest.h
183  WebKitOptionMenu.h
184  WebKitOptionMenuItem.h
185  WebKitPermissionRequest.h
186  WebKitPlugin.h
187  WebKitPointerLockPermissionRequest.h
188  WebKitPolicyDecision.h
189  WebKitPrintCustomWidget.h
190  WebKitPrintOperation.h
191  WebKitResponsePolicyDecision.h
192  WebKitScriptDialog.h
193  WebKitScriptWorld.h
194  WebKitSecurityManager.h
195  WebKitSecurityOrigin.h
196  WebKitSettings.h
197  WebKitURIRequest.h
198  WebKitURIResponse.h
199  WebKitURISchemeRequest.h
200  WebKitURIUtilities.h
201  WebKitUserContent.h
202  WebKitUserContentFilterStore.h
203  WebKitUserContentManager.h
204  WebKitUserMediaPermissionRequest.h
205  WebKitUserMessage.h
206  WebKitVersion.h
207  WebKitWebContext.h
208  WebKitWebEditor.h
209  WebKitWebExtension.h
210  WebKitWebExtensionAutocleanups.h
211  WebKitWebHitTestResult.h
212  WebKitWebInspector.h
213  WebKitWebPage.h
214  WebKitWebProcessEnumTypes.h
215  WebKitWebResource.h
216  WebKitWebView.h
217  WebKitWebViewBase.h
218  WebKitWebViewSessionState.h
219  WebKitWebsiteData.h
220  WebKitWebsiteDataAccessPermissionRequest.h
221  WebKitWebsiteDataManager.h
222  WebKitWebsitePolicies.h
223  WebKitWindowProperties.h
224  webkit-web-extension.h
225  webkit2.h
226 include/webkitgtk-%%WKAPI%%/webkitdom/
227  WebKitDOMAttr.h
228  WebKitDOMBlob.h
229  WebKitDOMCDATASection.h
230  WebKitDOMCSSRule.h
231  WebKitDOMCSSRuleList.h
232  WebKitDOMCSSStyleDeclaration.h
233  WebKitDOMCSSStyleSheet.h
234  WebKitDOMCSSValue.h
235  WebKitDOMCharacterData.h
236  WebKitDOMClientRect.h
237  WebKitDOMClientRectList.h
238  WebKitDOMComment.h
239  WebKitDOMCustom.h
240  WebKitDOMCustomUnstable.h
241  WebKitDOMDOMImplementation.h
242  WebKitDOMDOMSelection.h
243  WebKitDOMDOMTokenList.h
244  WebKitDOMDOMWindow.h
245  WebKitDOMDOMWindowUnstable.h
246  WebKitDOMDeprecated.h
247  WebKitDOMDocument.h
248  WebKitDOMDocumentFragment.h
249  WebKitDOMDocumentFragmentUnstable.h
250  WebKitDOMDocumentType.h
251  WebKitDOMDocumentUnstable.h
252  WebKitDOMElement.h
253  WebKitDOMElementUnstable.h
254  WebKitDOMEvent.h
255  WebKitDOMEventTarget.h
256  WebKitDOMFile.h
257  WebKitDOMFileList.h
258  WebKitDOMHTMLAnchorElement.h
259  WebKitDOMHTMLAppletElement.h
260  WebKitDOMHTMLAreaElement.h
261  WebKitDOMHTMLBRElement.h
262  WebKitDOMHTMLBaseElement.h
263  WebKitDOMHTMLBodyElement.h
264  WebKitDOMHTMLButtonElement.h
265  WebKitDOMHTMLCanvasElement.h
266  WebKitDOMHTMLCollection.h
267  WebKitDOMHTMLDListElement.h
268  WebKitDOMHTMLDirectoryElement.h
269  WebKitDOMHTMLDivElement.h
270  WebKitDOMHTMLDocument.h
271  WebKitDOMHTMLElement.h
272  WebKitDOMHTMLElementUnstable.h
273  WebKitDOMHTMLEmbedElement.h
274  WebKitDOMHTMLFieldSetElement.h
275  WebKitDOMHTMLFontElement.h
276  WebKitDOMHTMLFormElement.h
277  WebKitDOMHTMLFrameElement.h
278  WebKitDOMHTMLFrameSetElement.h
279  WebKitDOMHTMLHRElement.h
280  WebKitDOMHTMLHeadElement.h
281  WebKitDOMHTMLHeadingElement.h
282  WebKitDOMHTMLHtmlElement.h
283  WebKitDOMHTMLIFrameElement.h
284  WebKitDOMHTMLImageElement.h
285  WebKitDOMHTMLInputElement.h
286  WebKitDOMHTMLLIElement.h
287  WebKitDOMHTMLLabelElement.h
288  WebKitDOMHTMLLegendElement.h
289  WebKitDOMHTMLLinkElement.h
290  WebKitDOMHTMLMapElement.h
291  WebKitDOMHTMLMarqueeElement.h
292  WebKitDOMHTMLMenuElement.h
293  WebKitDOMHTMLMetaElement.h
294  WebKitDOMHTMLModElement.h
295  WebKitDOMHTMLOListElement.h
296  WebKitDOMHTMLObjectElement.h
297  WebKitDOMHTMLOptGroupElement.h
298  WebKitDOMHTMLOptionElement.h
299  WebKitDOMHTMLOptionsCollection.h
300  WebKitDOMHTMLParagraphElement.h
301  WebKitDOMHTMLParamElement.h
302  WebKitDOMHTMLPreElement.h
303  WebKitDOMHTMLQuoteElement.h
304  WebKitDOMHTMLScriptElement.h
305  WebKitDOMHTMLSelectElement.h
306  WebKitDOMHTMLStyleElement.h
307  WebKitDOMHTMLTableCaptionElement.h
308  WebKitDOMHTMLTableCellElement.h
309  WebKitDOMHTMLTableColElement.h
310  WebKitDOMHTMLTableElement.h
311  WebKitDOMHTMLTableRowElement.h
312  WebKitDOMHTMLTableSectionElement.h
313  WebKitDOMHTMLTextAreaElement.h
314  WebKitDOMHTMLTitleElement.h
315  WebKitDOMHTMLUListElement.h
316  WebKitDOMKeyboardEvent.h
317  WebKitDOMMediaList.h
318  WebKitDOMMouseEvent.h
319  WebKitDOMNamedNodeMap.h
320  WebKitDOMNode.h
321  WebKitDOMNodeFilter.h
322  WebKitDOMNodeIterator.h
323  WebKitDOMNodeList.h
324  WebKitDOMObject.h
325  WebKitDOMProcessingInstruction.h
326  WebKitDOMRange.h
327  WebKitDOMRangeUnstable.h
328  WebKitDOMStyleSheet.h
329  WebKitDOMStyleSheetList.h
330  WebKitDOMText.h
331  WebKitDOMTreeWalker.h
332  WebKitDOMUIEvent.h
333  WebKitDOMWheelEvent.h
334  WebKitDOMXPathExpression.h
335  WebKitDOMXPathNSResolver.h
336  WebKitDOMXPathResult.h
337  webkitdom.h
338  webkitdomautocleanups.h
339  webkitdomdefines.h
340 lib/
341  libjavascriptcoregtk-%%WKAPI%%.so
342  libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
343  libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
344  libwebkit2gtk-%%WKAPI%%.so
345  libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
346  libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
347 lib/girepository-1.0/
348  JavaScriptCore-%%WKAPI%%.typelib
349  WebKit2-%%WKAPI%%.typelib
350  WebKit2WebExtension-%%WKAPI%%.typelib
351 lib/pkgconfig/
352  javascriptcoregtk-%%WKAPI%%.pc
353  webkit2gtk-%%WKAPI%%.pc
354  webkit2gtk-web-extension-%%WKAPI%%.pc
355 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
356 libexec/webkit2gtk-%%WKAPI%%/
357  MiniBrowser
358  WebKitNetworkProcess
359  WebKitWebProcess
360  jsc
361 share/gir-1.0/
362  JavaScriptCore-%%WKAPI%%.gir
363  WebKit2-%%WKAPI%%.gir
364  WebKit2WebExtension-%%WKAPI%%.gir
365
366
367 [FILE:2566:manifests/plist.nls]
368 share/locale/ar/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
369 share/locale/as/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
370 share/locale/bg/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
371 share/locale/ca/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
372 share/locale/cs/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
373 share/locale/da/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
374 share/locale/de/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
375 share/locale/el/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
376 share/locale/en_CA/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
377 share/locale/en_GB/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
378 share/locale/eo/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
379 share/locale/es/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
380 share/locale/et/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
381 share/locale/eu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
382 share/locale/fi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
383 share/locale/fr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
384 share/locale/gl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
385 share/locale/gu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
386 share/locale/he/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
387 share/locale/hi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
388 share/locale/hu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
389 share/locale/id/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
390 share/locale/it/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
391 share/locale/ja/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
392 share/locale/kn/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
393 share/locale/ko/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
394 share/locale/lt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
395 share/locale/lv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
396 share/locale/ml/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
397 share/locale/mr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
398 share/locale/nb/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
399 share/locale/nl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
400 share/locale/or/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
401 share/locale/pa/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
402 share/locale/pl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
403 share/locale/pt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
404 share/locale/pt_BR/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
405 share/locale/ro/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
406 share/locale/ru/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
407 share/locale/sl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
408 share/locale/sr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
409 share/locale/sr@latin/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
410 share/locale/sv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
411 share/locale/ta/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
412 share/locale/te/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
413 share/locale/tr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
414 share/locale/uk/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
415 share/locale/vi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
416 share/locale/zh_CN/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
417
418
419 [FILE:433:patches/patch-CMakeLists.txt]
420 --- CMakeLists.txt.orig 2020-08-12 09:17:37 UTC
421 +++ CMakeLists.txt
422 @@ -179,6 +179,11 @@ if (ENABLE_API_TESTS)
423      enable_testing()
424  endif ()
425  
426 +if (SUPPRESS_ASSERT)
427 +   add_definitions(-DNDEBUG=1)
428 +   add_definitions(-D__OPTIMIZE__)
429 +endif()
430 +
431  # -----------------------------------------------------------------------------
432  # Add module directories
433  # -----------------------------------------------------------------------------
434
435
436 [FILE:534:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
437 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig       2020-08-12 09:17:52 UTC
438 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
439 @@ -2827,6 +2827,8 @@ public:
440          sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
441  #elif OS(FUCHSIA)
442          zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
443 +#elif OS(FREEBSD) || OS(NETBSD)
444 +        __clear_cache(code, reinterpret_cast<char*>(code) + size);
445  #elif OS(LINUX)
446          size_t page = pageSize();
447          uintptr_t current = reinterpret_cast<uintptr_t>(code);
448
449
450 [FILE:534:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
451 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig       2020-08-12 09:17:54 UTC
452 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
453 @@ -53,7 +53,7 @@ MemoryPressureHandler& MemoryPressureHan
454  }
455  
456  MemoryPressureHandler::MemoryPressureHandler()
457 -#if OS(LINUX) || OS(FREEBSD)
458 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
459      : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
460  #elif OS(WINDOWS)
461      : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
462
463
464 [FILE:644:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
465 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2020-08-12 09:17:54 UTC
466 +++ Source/WTF/wtf/MemoryPressureHandler.h
467 @@ -66,7 +66,7 @@ public:
468  
469      WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
470  
471 -#if OS(LINUX) || OS(FREEBSD)
472 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
473      WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
474  #endif
475  
476 @@ -200,7 +200,7 @@ private:
477      Win32Handle m_lowMemoryHandle;
478  #endif
479  
480 -#if OS(LINUX) || OS(FREEBSD)
481 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
482      RunLoop::Timer<MemoryPressureHandler> m_holdOffTimer;
483      void holdOffTimerFired();
484  #endif
485
486
487 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
488 --- Source/WTF/wtf/NumberOfCores.cpp.orig       2020-08-12 09:17:54 UTC
489 +++ Source/WTF/wtf/NumberOfCores.cpp
490 @@ -31,6 +31,7 @@
491  #if OS(DARWIN)
492  #include <sys/sysctl.h>
493  #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
494 +#include <stdio.h> // sscanf
495  #include <unistd.h>
496  #elif OS(WINDOWS)
497  #include <windows.h>
498
499
500 [FILE:390:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
501 --- Source/WTF/wtf/PlatformGTK.cmake.orig       2020-08-12 09:17:54 UTC
502 +++ Source/WTF/wtf/PlatformGTK.cmake
503 @@ -50,7 +50,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
504  
505          unix/MemoryPressureHandlerUnix.cpp
506      )
507 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
508 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly")
509      list(APPEND WTF_SOURCES
510          generic/MemoryFootprintGeneric.cpp
511  
512
513
514 [FILE:1426:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
515 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig      2020-08-12 09:17:54 UTC
516 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
517 @@ -28,7 +28,11 @@
518  #include "config.h"
519  #include <wtf/MemoryPressureHandler.h>
520  
521 +#if OS(FREEBSD) || defined(__DragonFly__)
522 +#include <stdlib.h>
523 +#else
524  #include <malloc.h>
525 +#endif
526  #include <unistd.h>
527  #include <wtf/MainThread.h>
528  #include <wtf/MemoryFootprint.h>
529 @@ -36,7 +40,7 @@
530  
531  #if OS(LINUX)
532  #include <wtf/linux/CurrentProcessMemoryStatus.h>
533 -#elif OS(FREEBSD)
534 +#elif OS(FREEBSD) || defined(__DragonFly__)
535  #include <sys/sysctl.h>
536  #include <sys/types.h>
537  #include <sys/user.h>
538 @@ -116,7 +120,7 @@ static size_t processMemoryUsage()
539      ProcessMemoryStatus memoryStatus;
540      currentProcessMemoryStatus(memoryStatus);
541      return (memoryStatus.resident - memoryStatus.shared);
542 -#elif OS(FREEBSD)
543 +#elif OS(FREEBSD) || defined(__DragonFly__)
544      static size_t pageSize = sysconf(_SC_PAGE_SIZE);
545      struct kinfo_proc info;
546      size_t infolen = sizeof(info);
547 @@ -130,7 +134,11 @@ static size_t processMemoryUsage()
548      if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
549          return 0;
550  
551 +# ifdef __DragonFly__
552 +    return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
553 +# else
554      return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
555 +# endif
556  #else
557  #error "Missing a platform specific way of determining the memory usage"
558  #endif
559
560
561 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
562 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig    2020-08-12 09:17:55 UTC
563 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
564 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
565      "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
566      "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
567      "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
568 -    "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
569 +    "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
570      // The color values are stored in-place.
571      "strb r2, [" PIXELS_R ", #-11]" NL
572      "strb r3, [" PIXELS_R ", #-10]" NL
573
574
575 [FILE:396:patches/patch-Source_WebCore_platform_graphics_egl_GLContextEGL.cpp]
576 --- Source/WebCore/platform/graphics/egl/GLContextEGL.cpp.orig  2020-08-12 09:17:55 UTC
577 +++ Source/WebCore/platform/graphics/egl/GLContextEGL.cpp
578 @@ -45,6 +45,8 @@
579  #include "OpenGLShims.h"
580  #endif
581  
582 +#include <X11/Xlib.h>
583 +
584  #if ENABLE(ACCELERATED_2D_CANVAS)
585  // cairo-gl.h includes some definitions from GLX that conflict with
586  // the ones provided by us. Since GLContextEGL doesn't use any GLX
587
588
589 [FILE:309:patches/patch-Source_WebCore_platform_network_DNS.h]
590 --- Source/WebCore/platform/network/DNS.h.orig  2020-08-12 09:17:55 UTC
591 +++ Source/WebCore/platform/network/DNS.h
592 @@ -30,6 +30,9 @@
593  #include <ws2tcpip.h>
594  #else
595  #include <netinet/in.h>
596 +# if defined __DragonFly__ || defined __FreeBSD__
597 +#  include <sys/socket.h>
598 +# endif
599  #endif
600  
601  #include <wtf/Forward.h>
602
603
604 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
605 --- Source/WebDriver/PlatformGTK.cmake.orig     2020-08-12 09:17:56 UTC
606 +++ Source/WebDriver/PlatformGTK.cmake
607 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
608  list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
609      "${GLIB_INCLUDE_DIRS}"
610      "${LIBSOUP_INCLUDE_DIRS}"
611 +    "${ICU_INCLUDE_DIRS}"
612  )
613  
614  list(APPEND WebDriver_SOURCES
615
616
617 [FILE:792:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
618 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig       2020-08-12 09:17:56 UTC
619 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
620 @@ -137,7 +137,13 @@ static int createSharedMemory()
621  
622      CString tempName;
623      for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
624 -        String name = String("/WK2SharedMemory.") + String::number(static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
625 +        String name =
626 +#ifdef __DragonFly__
627 +                      String("/tmp/WK2SharedMemory.")
628 +#else
629 +                      String("/WK2SharedMemory.")
630 +#endif
631 +                      + String::number(static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
632          tempName = name.utf8();
633  
634          do {
635
636
637 [FILE:1374:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
638 Add DragonFly support
639 FreeBSD 11 doesn't have sysinfo.h like DragonFly doesn't
640
641 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig     2020-08-12 09:17:57 UTC
642 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
643 @@ -47,10 +47,15 @@
644  #if BOS(LINUX)
645  #include <algorithm>
646  #include <fcntl.h>
647 +#elif defined(__DragonFly__)
648 +#include "VMAllocate.h"
649 +#include <sys/sysctl.h>
650 +#include <sys/kinfo.h>
651 +#include <sys/types.h>
652 +#include <sys/user.h>
653  #elif BOS(FREEBSD)
654  #include "VMAllocate.h"
655  #include <sys/sysctl.h>
656 -#include <sys/sysinfo.h>
657  #include <sys/types.h>
658  #include <sys/user.h>
659  #endif
660 @@ -169,7 +174,7 @@ static size_t computeAvailableMemory()
661      return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
662  #elif BOS(LINUX)
663      return LinuxMemory::singleton().availableMemory;
664 -#elif BOS(FREEBSD)
665 +#elif 0
666      struct sysinfo info;
667      if (!sysinfo(&info))
668          return info.totalram * info.mem_unit;
669 @@ -223,7 +228,11 @@ MemoryStatus memoryStatus()
670  
671      size_t memoryFootprint = 0;
672      if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
673 +# ifdef __DragonFly__
674 +        memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
675 +# else
676          memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
677 +# endif
678  
679      double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());
680  #endif
681