1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[gtk3]= Opensource browser engine using the GTK+ 3 toolkit
8 HOMEPAGE= https://www.webkitgtk.org/
12 SITES[main]= https://www.webkitgtk.org/releases/
13 https://fossies.org/linux/www/
14 DISTFILE[1]= webkitgtk-2.30.0.tar.xz:main
20 OPTIONS_AVAILABLE= GTK3
21 OPTIONS_STANDARD= none
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
30 libsecret:primary:standard
31 libnotify:primary:standard
32 hyphen:single:standard
35 libsoup:primary:standard
36 libgcrypt:single:standard
37 gnutls:primary:standard
38 libtasn1:primary:standard
39 geoclue:single:standard
41 gstreamer1-plugins-base:primary:standard
42 openjpeg:single:standard
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
49 DISTNAME= webkitgtk-2.30.0
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:"^$$"
57 LICENSE_SOURCE= BSD3CLAUSE:{{WRKSRC}}/Source/WebCore/css/parser/MediaQueryBlockWatcher.h
58 TERMS:{{WRKSRC}}/Source/WebCore/style/StyleScope.cpp
61 CPE_PRODUCT= webkitgtk
63 FPC_EQUIVALENT= www/webkit2-gtk3
65 CONFIGURE_ENV= XDG_CACHE_HOME={{WRKDIR}}
67 INSTALL_TARGET= install
69 PLIST_SUB= JSSOVERSION=18.17.8
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
85 [GTK3].DESCRIPTION= Build GTK+3 variant
86 [GTK3].MAKEFILE_ON= BROWSER_PLUGIN_DIR={{LOCALBASE}}/lib/browser_plugins/symlinks/webkit-gtk3
89 ${REINPLACE_CMD} -e 's|/usr/lib/browser/plugins|${BROWSER_PLUGINS_DIR}|' \
90 ${WRKSRC}/Source/WebKit/Shared/Plugins/unix/PluginSearchPath.cpp
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
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.
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
115 caf3dbf2d2383072614e34281f2fffb6331faf92f4ecf215f6f6a5a57f755d11 22303832 webkitgtk-2.30.0.tar.xz
118 [FILE:6298:manifests/plist.primary]
120 MiniBrowser-%%WKAPIMAJOR%%
123 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
132 include/webkitgtk-%%WKAPI%%/jsc/
144 include/webkitgtk-%%WKAPI%%/webkit2/
145 WebKitApplicationInfo.h
146 WebKitAuthenticationRequest.h
148 WebKitAutomationSession.h
149 WebKitBackForwardList.h
150 WebKitBackForwardListItem.h
151 WebKitColorChooserRequest.h
152 WebKitConsoleMessage.h
154 WebKitContextMenuActions.h
155 WebKitContextMenuItem.h
156 WebKitCookieManager.h
159 WebKitDeviceInfoPermissionRequest.h
161 WebKitEditingCommands.h
165 WebKitFaviconDatabase.h
166 WebKitFileChooserRequest.h
167 WebKitFindController.h
168 WebKitFormSubmissionRequest.h
169 WebKitForwardDeclarations.h
171 WebKitGeolocationManager.h
172 WebKitGeolocationPermissionRequest.h
173 WebKitHitTestResult.h
174 WebKitInputMethodContext.h
175 WebKitInstallMissingMediaPluginsPermissionRequest.h
176 WebKitJavascriptResult.h
178 WebKitNavigationAction.h
179 WebKitNavigationPolicyDecision.h
180 WebKitNetworkProxySettings.h
182 WebKitNotificationPermissionRequest.h
184 WebKitOptionMenuItem.h
185 WebKitPermissionRequest.h
187 WebKitPointerLockPermissionRequest.h
188 WebKitPolicyDecision.h
189 WebKitPrintCustomWidget.h
190 WebKitPrintOperation.h
191 WebKitResponsePolicyDecision.h
194 WebKitSecurityManager.h
195 WebKitSecurityOrigin.h
199 WebKitURISchemeRequest.h
202 WebKitUserContentFilterStore.h
203 WebKitUserContentManager.h
204 WebKitUserMediaPermissionRequest.h
210 WebKitWebExtensionAutocleanups.h
211 WebKitWebHitTestResult.h
214 WebKitWebProcessEnumTypes.h
218 WebKitWebViewSessionState.h
220 WebKitWebsiteDataAccessPermissionRequest.h
221 WebKitWebsiteDataManager.h
222 WebKitWebsitePolicies.h
223 WebKitWindowProperties.h
224 webkit-web-extension.h
226 include/webkitgtk-%%WKAPI%%/webkitdom/
229 WebKitDOMCDATASection.h
231 WebKitDOMCSSRuleList.h
232 WebKitDOMCSSStyleDeclaration.h
233 WebKitDOMCSSStyleSheet.h
235 WebKitDOMCharacterData.h
236 WebKitDOMClientRect.h
237 WebKitDOMClientRectList.h
240 WebKitDOMCustomUnstable.h
241 WebKitDOMDOMImplementation.h
242 WebKitDOMDOMSelection.h
243 WebKitDOMDOMTokenList.h
245 WebKitDOMDOMWindowUnstable.h
246 WebKitDOMDeprecated.h
248 WebKitDOMDocumentFragment.h
249 WebKitDOMDocumentFragmentUnstable.h
250 WebKitDOMDocumentType.h
251 WebKitDOMDocumentUnstable.h
253 WebKitDOMElementUnstable.h
255 WebKitDOMEventTarget.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
318 WebKitDOMMouseEvent.h
319 WebKitDOMNamedNodeMap.h
321 WebKitDOMNodeFilter.h
322 WebKitDOMNodeIterator.h
325 WebKitDOMProcessingInstruction.h
327 WebKitDOMRangeUnstable.h
328 WebKitDOMStyleSheet.h
329 WebKitDOMStyleSheetList.h
331 WebKitDOMTreeWalker.h
333 WebKitDOMWheelEvent.h
334 WebKitDOMXPathExpression.h
335 WebKitDOMXPathNSResolver.h
336 WebKitDOMXPathResult.h
338 webkitdomautocleanups.h
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
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%%/
362 JavaScriptCore-%%WKAPI%%.gir
363 WebKit2-%%WKAPI%%.gir
364 WebKit2WebExtension-%%WKAPI%%.gir
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
419 [FILE:433:patches/patch-CMakeLists.txt]
420 --- CMakeLists.txt.orig 2020-08-12 09:17:37 UTC
422 @@ -179,6 +179,11 @@ if (ENABLE_API_TESTS)
426 +if (SUPPRESS_ASSERT)
427 + add_definitions(-DNDEBUG=1)
428 + add_definitions(-D__OPTIMIZE__)
431 # -----------------------------------------------------------------------------
432 # Add module directories
433 # -----------------------------------------------------------------------------
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);
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);
446 size_t page = pageSize();
447 uintptr_t current = reinterpret_cast<uintptr_t>(code);
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
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)
461 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
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:
469 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
471 -#if OS(LINUX) || OS(FREEBSD)
472 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
473 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
476 @@ -200,7 +200,7 @@ private:
477 Win32Handle m_lowMemoryHandle;
480 -#if OS(LINUX) || OS(FREEBSD)
481 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
482 RunLoop::Timer<MemoryPressureHandler> m_holdOffTimer;
483 void holdOffTimerFired();
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
492 #include <sys/sysctl.h>
493 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
494 +#include <stdio.h> // sscanf
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")
505 unix/MemoryPressureHandlerUnix.cpp
507 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
508 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly")
509 list(APPEND WTF_SOURCES
510 generic/MemoryFootprintGeneric.cpp
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
519 #include <wtf/MemoryPressureHandler.h>
521 +#if OS(FREEBSD) || defined(__DragonFly__)
527 #include <wtf/MainThread.h>
528 #include <wtf/MemoryFootprint.h>
532 #include <wtf/linux/CurrentProcessMemoryStatus.h>
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);
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))
551 +# ifdef __DragonFly__
552 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
554 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
557 #error "Missing a platform specific way of determining the memory usage"
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
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
579 #include "OpenGLShims.h"
582 +#include <X11/Xlib.h>
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
589 [FILE:281: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
593 #include <ws2tcpip.h>
595 #include <netinet/in.h>
596 +# ifdef __DragonFly__
597 +# include <sys/socket.h>
601 #include <wtf/Forward.h>
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}"
614 list(APPEND WebDriver_SOURCES
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()
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)));
626 +#ifdef __DragonFly__
627 + String("/tmp/WK2SharedMemory.")
629 + String("/WK2SharedMemory.")
631 + + String::number(static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
632 tempName = name.utf8();
637 [FILE:1250:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
638 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2020-08-12 09:17:57 UTC
639 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
644 +#elif defined(__DragonFly__)
645 +#include "VMAllocate.h"
646 +#include <sys/sysctl.h>
647 +#include <sys/kinfo.h>
648 +#include <sys/types.h>
649 +#include <sys/user.h>
651 #include "VMAllocate.h"
652 #include <sys/sysctl.h>
653 @@ -169,7 +175,7 @@ static size_t computeAvailableMemory()
654 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
656 return LinuxMemory::singleton().availableMemory;
658 +#elif BOS(FREEBSD) && !defined(__DragonFly__)
661 return info.totalram * info.mem_unit;
662 @@ -223,7 +229,11 @@ MemoryStatus memoryStatus()
664 size_t memoryFootprint = 0;
665 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
666 +# ifdef __DragonFly__
667 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
669 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
672 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());