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.3.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.3
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.11
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
91 echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' \
92 >> ${WRKSRC}/Source/WTF/wtf/CMakeLists.txt
95 (cd ${STAGEDIR}${PREFIX}/bin && \
96 ${LN} -s ../libexec/webkit2gtk-4.0/jsc jsc-4 && \
97 ${LN} -s ../libexec/webkit2gtk-4.0/MiniBrowser MiniBrowser-4)
98 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*.*
99 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/webkit2gtk-4.0/injected-bundle/*.so
100 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/*
101 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/WebKitWebDriver
103 [FILE:576:descriptions/desc.primary]
104 WebKitGTK+ is a full-featured port of the WebKit rendering engine, suitable
105 for projects requiring any kind of web integration, from hybrid HTML/CSS
106 applications to full-fledged web browsers. It offers WebKit's full
107 functionality and is useful in a wide range of systems from desktop
108 computers to embedded systems like phones, tablets, and televisions.
110 WebKitGTK+ is made by a lively community of developers and designers,
111 who hope to bring the web platform to everyone. It's the official web
112 engine of the GNOME platform and is used in browsers such as Epiphany
117 6dea14f03916882816f2fed9497a5103fc54b2ab8602ab145ca991e4951e5e7f 22311704 webkitgtk-2.30.3.tar.xz
120 [FILE:6298:manifests/plist.primary]
122 MiniBrowser-%%WKAPIMAJOR%%
125 include/webkitgtk-%%WKAPI%%/JavaScriptCore/
134 include/webkitgtk-%%WKAPI%%/jsc/
146 include/webkitgtk-%%WKAPI%%/webkit2/
147 WebKitApplicationInfo.h
148 WebKitAuthenticationRequest.h
150 WebKitAutomationSession.h
151 WebKitBackForwardList.h
152 WebKitBackForwardListItem.h
153 WebKitColorChooserRequest.h
154 WebKitConsoleMessage.h
156 WebKitContextMenuActions.h
157 WebKitContextMenuItem.h
158 WebKitCookieManager.h
161 WebKitDeviceInfoPermissionRequest.h
163 WebKitEditingCommands.h
167 WebKitFaviconDatabase.h
168 WebKitFileChooserRequest.h
169 WebKitFindController.h
170 WebKitFormSubmissionRequest.h
171 WebKitForwardDeclarations.h
173 WebKitGeolocationManager.h
174 WebKitGeolocationPermissionRequest.h
175 WebKitHitTestResult.h
176 WebKitInputMethodContext.h
177 WebKitInstallMissingMediaPluginsPermissionRequest.h
178 WebKitJavascriptResult.h
180 WebKitNavigationAction.h
181 WebKitNavigationPolicyDecision.h
182 WebKitNetworkProxySettings.h
184 WebKitNotificationPermissionRequest.h
186 WebKitOptionMenuItem.h
187 WebKitPermissionRequest.h
189 WebKitPointerLockPermissionRequest.h
190 WebKitPolicyDecision.h
191 WebKitPrintCustomWidget.h
192 WebKitPrintOperation.h
193 WebKitResponsePolicyDecision.h
196 WebKitSecurityManager.h
197 WebKitSecurityOrigin.h
201 WebKitURISchemeRequest.h
204 WebKitUserContentFilterStore.h
205 WebKitUserContentManager.h
206 WebKitUserMediaPermissionRequest.h
212 WebKitWebExtensionAutocleanups.h
213 WebKitWebHitTestResult.h
216 WebKitWebProcessEnumTypes.h
220 WebKitWebViewSessionState.h
222 WebKitWebsiteDataAccessPermissionRequest.h
223 WebKitWebsiteDataManager.h
224 WebKitWebsitePolicies.h
225 WebKitWindowProperties.h
226 webkit-web-extension.h
228 include/webkitgtk-%%WKAPI%%/webkitdom/
231 WebKitDOMCDATASection.h
233 WebKitDOMCSSRuleList.h
234 WebKitDOMCSSStyleDeclaration.h
235 WebKitDOMCSSStyleSheet.h
237 WebKitDOMCharacterData.h
238 WebKitDOMClientRect.h
239 WebKitDOMClientRectList.h
242 WebKitDOMCustomUnstable.h
243 WebKitDOMDOMImplementation.h
244 WebKitDOMDOMSelection.h
245 WebKitDOMDOMTokenList.h
247 WebKitDOMDOMWindowUnstable.h
248 WebKitDOMDeprecated.h
250 WebKitDOMDocumentFragment.h
251 WebKitDOMDocumentFragmentUnstable.h
252 WebKitDOMDocumentType.h
253 WebKitDOMDocumentUnstable.h
255 WebKitDOMElementUnstable.h
257 WebKitDOMEventTarget.h
260 WebKitDOMHTMLAnchorElement.h
261 WebKitDOMHTMLAppletElement.h
262 WebKitDOMHTMLAreaElement.h
263 WebKitDOMHTMLBRElement.h
264 WebKitDOMHTMLBaseElement.h
265 WebKitDOMHTMLBodyElement.h
266 WebKitDOMHTMLButtonElement.h
267 WebKitDOMHTMLCanvasElement.h
268 WebKitDOMHTMLCollection.h
269 WebKitDOMHTMLDListElement.h
270 WebKitDOMHTMLDirectoryElement.h
271 WebKitDOMHTMLDivElement.h
272 WebKitDOMHTMLDocument.h
273 WebKitDOMHTMLElement.h
274 WebKitDOMHTMLElementUnstable.h
275 WebKitDOMHTMLEmbedElement.h
276 WebKitDOMHTMLFieldSetElement.h
277 WebKitDOMHTMLFontElement.h
278 WebKitDOMHTMLFormElement.h
279 WebKitDOMHTMLFrameElement.h
280 WebKitDOMHTMLFrameSetElement.h
281 WebKitDOMHTMLHRElement.h
282 WebKitDOMHTMLHeadElement.h
283 WebKitDOMHTMLHeadingElement.h
284 WebKitDOMHTMLHtmlElement.h
285 WebKitDOMHTMLIFrameElement.h
286 WebKitDOMHTMLImageElement.h
287 WebKitDOMHTMLInputElement.h
288 WebKitDOMHTMLLIElement.h
289 WebKitDOMHTMLLabelElement.h
290 WebKitDOMHTMLLegendElement.h
291 WebKitDOMHTMLLinkElement.h
292 WebKitDOMHTMLMapElement.h
293 WebKitDOMHTMLMarqueeElement.h
294 WebKitDOMHTMLMenuElement.h
295 WebKitDOMHTMLMetaElement.h
296 WebKitDOMHTMLModElement.h
297 WebKitDOMHTMLOListElement.h
298 WebKitDOMHTMLObjectElement.h
299 WebKitDOMHTMLOptGroupElement.h
300 WebKitDOMHTMLOptionElement.h
301 WebKitDOMHTMLOptionsCollection.h
302 WebKitDOMHTMLParagraphElement.h
303 WebKitDOMHTMLParamElement.h
304 WebKitDOMHTMLPreElement.h
305 WebKitDOMHTMLQuoteElement.h
306 WebKitDOMHTMLScriptElement.h
307 WebKitDOMHTMLSelectElement.h
308 WebKitDOMHTMLStyleElement.h
309 WebKitDOMHTMLTableCaptionElement.h
310 WebKitDOMHTMLTableCellElement.h
311 WebKitDOMHTMLTableColElement.h
312 WebKitDOMHTMLTableElement.h
313 WebKitDOMHTMLTableRowElement.h
314 WebKitDOMHTMLTableSectionElement.h
315 WebKitDOMHTMLTextAreaElement.h
316 WebKitDOMHTMLTitleElement.h
317 WebKitDOMHTMLUListElement.h
318 WebKitDOMKeyboardEvent.h
320 WebKitDOMMouseEvent.h
321 WebKitDOMNamedNodeMap.h
323 WebKitDOMNodeFilter.h
324 WebKitDOMNodeIterator.h
327 WebKitDOMProcessingInstruction.h
329 WebKitDOMRangeUnstable.h
330 WebKitDOMStyleSheet.h
331 WebKitDOMStyleSheetList.h
333 WebKitDOMTreeWalker.h
335 WebKitDOMWheelEvent.h
336 WebKitDOMXPathExpression.h
337 WebKitDOMXPathNSResolver.h
338 WebKitDOMXPathResult.h
340 webkitdomautocleanups.h
343 libjavascriptcoregtk-%%WKAPI%%.so
344 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOMAJOR%%
345 libjavascriptcoregtk-%%WKAPI%%.so.%%JSSOVERSION%%
346 libwebkit2gtk-%%WKAPI%%.so
347 libwebkit2gtk-%%WKAPI%%.so.%%SOMAJOR%%
348 libwebkit2gtk-%%WKAPI%%.so.%%SOVERSION%%
349 lib/girepository-1.0/
350 JavaScriptCore-%%WKAPI%%.typelib
351 WebKit2-%%WKAPI%%.typelib
352 WebKit2WebExtension-%%WKAPI%%.typelib
354 javascriptcoregtk-%%WKAPI%%.pc
355 webkit2gtk-%%WKAPI%%.pc
356 webkit2gtk-web-extension-%%WKAPI%%.pc
357 lib/webkit2gtk-%%WKAPI%%/injected-bundle/libwebkit2gtkinjectedbundle.so
358 libexec/webkit2gtk-%%WKAPI%%/
364 JavaScriptCore-%%WKAPI%%.gir
365 WebKit2-%%WKAPI%%.gir
366 WebKit2WebExtension-%%WKAPI%%.gir
369 [FILE:2566:manifests/plist.nls]
370 share/locale/ar/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
371 share/locale/as/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
372 share/locale/bg/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
373 share/locale/ca/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
374 share/locale/cs/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
375 share/locale/da/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
376 share/locale/de/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
377 share/locale/el/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
378 share/locale/en_CA/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
379 share/locale/en_GB/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
380 share/locale/eo/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
381 share/locale/es/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
382 share/locale/et/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
383 share/locale/eu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
384 share/locale/fi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
385 share/locale/fr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
386 share/locale/gl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
387 share/locale/gu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
388 share/locale/he/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
389 share/locale/hi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
390 share/locale/hu/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
391 share/locale/id/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
392 share/locale/it/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
393 share/locale/ja/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
394 share/locale/kn/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
395 share/locale/ko/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
396 share/locale/lt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
397 share/locale/lv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
398 share/locale/ml/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
399 share/locale/mr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
400 share/locale/nb/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
401 share/locale/nl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
402 share/locale/or/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
403 share/locale/pa/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
404 share/locale/pl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
405 share/locale/pt/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
406 share/locale/pt_BR/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
407 share/locale/ro/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
408 share/locale/ru/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
409 share/locale/sl/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
410 share/locale/sr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
411 share/locale/sr@latin/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
412 share/locale/sv/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
413 share/locale/ta/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
414 share/locale/te/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
415 share/locale/tr/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
416 share/locale/uk/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
417 share/locale/vi/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
418 share/locale/zh_CN/LC_MESSAGES/WebKit2GTK-%%WKAPI%%.mo
421 [FILE:433:patches/patch-CMakeLists.txt]
422 --- CMakeLists.txt.orig 2020-08-12 09:17:37 UTC
424 @@ -179,6 +179,11 @@ if (ENABLE_API_TESTS)
428 +if (SUPPRESS_ASSERT)
429 + add_definitions(-DNDEBUG=1)
430 + add_definitions(-D__OPTIMIZE__)
433 # -----------------------------------------------------------------------------
434 # Add module directories
435 # -----------------------------------------------------------------------------
438 [FILE:534:patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h]
439 --- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2020-08-12 09:17:52 UTC
440 +++ Source/JavaScriptCore/assembler/ARM64Assembler.h
441 @@ -2827,6 +2827,8 @@ public:
442 sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
444 zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
445 +#elif OS(FREEBSD) || OS(NETBSD)
446 + __clear_cache(code, reinterpret_cast<char*>(code) + size);
448 size_t page = pageSize();
449 uintptr_t current = reinterpret_cast<uintptr_t>(code);
452 [FILE:534:patches/patch-Source_WTF_wtf_MemoryPressureHandler.cpp]
453 --- Source/WTF/wtf/MemoryPressureHandler.cpp.orig 2020-08-12 09:17:54 UTC
454 +++ Source/WTF/wtf/MemoryPressureHandler.cpp
455 @@ -53,7 +53,7 @@ MemoryPressureHandler& MemoryPressureHan
458 MemoryPressureHandler::MemoryPressureHandler()
459 -#if OS(LINUX) || OS(FREEBSD)
460 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
461 : m_holdOffTimer(RunLoop::main(), this, &MemoryPressureHandler::holdOffTimerFired)
463 : m_windowsMeasurementTimer(RunLoop::main(), this, &MemoryPressureHandler::windowsMeasurementTimerFired)
466 [FILE:644:patches/patch-Source_WTF_wtf_MemoryPressureHandler.h]
467 --- Source/WTF/wtf/MemoryPressureHandler.h.orig 2020-08-12 09:17:54 UTC
468 +++ Source/WTF/wtf/MemoryPressureHandler.h
469 @@ -66,7 +66,7 @@ public:
471 WTF_EXPORT_PRIVATE void setShouldUsePeriodicMemoryMonitor(bool);
473 -#if OS(LINUX) || OS(FREEBSD)
474 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
475 WTF_EXPORT_PRIVATE void triggerMemoryPressureEvent(bool isCritical);
478 @@ -200,7 +200,7 @@ private:
479 Win32Handle m_lowMemoryHandle;
482 -#if OS(LINUX) || OS(FREEBSD)
483 +#if OS(LINUX) || OS(FREEBSD) || defined(__DragonFly__)
484 RunLoop::Timer<MemoryPressureHandler> m_holdOffTimer;
485 void holdOffTimerFired();
489 [FILE:326:patches/patch-Source_WTF_wtf_NumberOfCores.cpp]
490 --- Source/WTF/wtf/NumberOfCores.cpp.orig 2020-08-12 09:17:54 UTC
491 +++ Source/WTF/wtf/NumberOfCores.cpp
494 #include <sys/sysctl.h>
495 #elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
496 +#include <stdio.h> // sscanf
502 [FILE:390:patches/patch-Source_WTF_wtf_PlatformGTK.cmake]
503 --- Source/WTF/wtf/PlatformGTK.cmake.orig 2020-08-12 09:17:54 UTC
504 +++ Source/WTF/wtf/PlatformGTK.cmake
505 @@ -50,7 +50,7 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
507 unix/MemoryPressureHandlerUnix.cpp
509 -elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
510 +elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD|DragonFly")
511 list(APPEND WTF_SOURCES
512 generic/MemoryFootprintGeneric.cpp
516 [FILE:1426:patches/patch-Source_WTF_wtf_unix_MemoryPressureHandlerUnix.cpp]
517 --- Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp.orig 2020-08-12 09:17:54 UTC
518 +++ Source/WTF/wtf/unix/MemoryPressureHandlerUnix.cpp
521 #include <wtf/MemoryPressureHandler.h>
523 +#if OS(FREEBSD) || defined(__DragonFly__)
529 #include <wtf/MainThread.h>
530 #include <wtf/MemoryFootprint.h>
534 #include <wtf/linux/CurrentProcessMemoryStatus.h>
536 +#elif OS(FREEBSD) || defined(__DragonFly__)
537 #include <sys/sysctl.h>
538 #include <sys/types.h>
539 #include <sys/user.h>
540 @@ -116,7 +120,7 @@ static size_t processMemoryUsage()
541 ProcessMemoryStatus memoryStatus;
542 currentProcessMemoryStatus(memoryStatus);
543 return (memoryStatus.resident - memoryStatus.shared);
545 +#elif OS(FREEBSD) || defined(__DragonFly__)
546 static size_t pageSize = sysconf(_SC_PAGE_SIZE);
547 struct kinfo_proc info;
548 size_t infolen = sizeof(info);
549 @@ -130,7 +134,11 @@ static size_t processMemoryUsage()
550 if (sysctl(mib, 4, &info, &infolen, nullptr, 0))
553 +# ifdef __DragonFly__
554 + return static_cast<size_t>(info.kp_vm_rssize - info.kp_vm_tsize) * pageSize;
556 return static_cast<size_t>(info.ki_rssize - info.ki_tsize) * pageSize;
559 #error "Missing a platform specific way of determining the memory usage"
563 [FILE:610:patches/patch-Source_WebCore_platform_graphics_cpu_arm_filters_FELightingNEON.cpp]
564 --- Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp.orig 2020-08-12 09:17:55 UTC
565 +++ Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
566 @@ -403,7 +403,7 @@ TOSTRING(neonDrawLighting) ":" NL
567 "vmin.f32 " TMP2_D0 ", " TMP2_D0 ", " CONST_ONE_HI_D NL
568 "vmul.f32 " TMP3_Q ", " COLOR_Q ", " TMP2_D0 "[1]" NL
569 "vcvt.u32.f32 " TMP3_Q ", " TMP3_Q NL
570 - "vmov.u32 r2, r3, " TMP3_S0 ", " TMP3_S1 NL
571 + "vmov r2, r3, " TMP3_S0 ", " TMP3_S1 NL
572 // The color values are stored in-place.
573 "strb r2, [" PIXELS_R ", #-11]" NL
574 "strb r3, [" PIXELS_R ", #-10]" NL
577 [FILE:396:patches/patch-Source_WebCore_platform_graphics_egl_GLContextEGL.cpp]
578 --- Source/WebCore/platform/graphics/egl/GLContextEGL.cpp.orig 2020-08-12 09:17:55 UTC
579 +++ Source/WebCore/platform/graphics/egl/GLContextEGL.cpp
581 #include "OpenGLShims.h"
584 +#include <X11/Xlib.h>
586 #if ENABLE(ACCELERATED_2D_CANVAS)
587 // cairo-gl.h includes some definitions from GLX that conflict with
588 // the ones provided by us. Since GLContextEGL doesn't use any GLX
591 [FILE:309:patches/patch-Source_WebCore_platform_network_DNS.h]
592 --- Source/WebCore/platform/network/DNS.h.orig 2020-08-12 09:17:55 UTC
593 +++ Source/WebCore/platform/network/DNS.h
595 #include <ws2tcpip.h>
597 #include <netinet/in.h>
598 +# if defined __DragonFly__ || defined __FreeBSD__
599 +# include <sys/socket.h>
603 #include <wtf/Forward.h>
606 [FILE:336:patches/patch-Source_WebDriver_PlatformGTK.cmake]
607 --- Source/WebDriver/PlatformGTK.cmake.orig 2020-08-12 09:17:56 UTC
608 +++ Source/WebDriver/PlatformGTK.cmake
609 @@ -5,6 +5,7 @@ add_definitions(-DLIBEXECDIR="${CMAKE_IN
610 list(APPEND WebDriver_SYSTEM_INCLUDE_DIRECTORIES
611 "${GLIB_INCLUDE_DIRS}"
612 "${LIBSOUP_INCLUDE_DIRS}"
613 + "${ICU_INCLUDE_DIRS}"
616 list(APPEND WebDriver_SOURCES
619 [FILE:792:patches/patch-Source_WebKit_Platform_unix_SharedMemoryUnix.cpp]
620 --- Source/WebKit/Platform/unix/SharedMemoryUnix.cpp.orig 2020-08-12 09:17:56 UTC
621 +++ Source/WebKit/Platform/unix/SharedMemoryUnix.cpp
622 @@ -137,7 +137,13 @@ static int createSharedMemory()
625 for (int tries = 0; fileDescriptor == -1 && tries < 10; ++tries) {
626 - String name = String("/WK2SharedMemory.") + String::number(static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
628 +#ifdef __DragonFly__
629 + String("/tmp/WK2SharedMemory.")
631 + String("/WK2SharedMemory.")
633 + + String::number(static_cast<unsigned>(WTF::randomNumber() * (std::numeric_limits<unsigned>::max() + 1.0)));
634 tempName = name.utf8();
639 [FILE:1374:patches/patch-Source_bmalloc_bmalloc_AvailableMemory.cpp]
640 Add DragonFly support
641 FreeBSD 11 doesn't have sysinfo.h like DragonFly doesn't
643 --- Source/bmalloc/bmalloc/AvailableMemory.cpp.orig 2020-08-12 09:17:57 UTC
644 +++ Source/bmalloc/bmalloc/AvailableMemory.cpp
649 +#elif defined(__DragonFly__)
650 +#include "VMAllocate.h"
651 +#include <sys/sysctl.h>
652 +#include <sys/kinfo.h>
653 +#include <sys/types.h>
654 +#include <sys/user.h>
656 #include "VMAllocate.h"
657 #include <sys/sysctl.h>
658 -#include <sys/sysinfo.h>
659 #include <sys/types.h>
660 #include <sys/user.h>
662 @@ -169,7 +174,7 @@ static size_t computeAvailableMemory()
663 return ((sizeAccordingToKernel + multiple - 1) / multiple) * multiple;
665 return LinuxMemory::singleton().availableMemory;
670 return info.totalram * info.mem_unit;
671 @@ -223,7 +228,11 @@ MemoryStatus memoryStatus()
673 size_t memoryFootprint = 0;
674 if (!sysctl(mib, 4, &info, &infolen, nullptr, 0))
675 +# ifdef __DragonFly__
676 + memoryFootprint = static_cast<size_t>(info.kp_vm_rssize) * vmPageSize();
678 memoryFootprint = static_cast<size_t>(info.ki_rssize) * vmPageSize();
681 double percentInUse = static_cast<double>(memoryFootprint) / static_cast<double>(availableMemory());