ports/www/qt5-webengine/files/patch-src_3rdparty_gn_build_gen.py
Kai Knoblich 223e08d1be www/qt5-webengine: Update to 5.15.2
* Under the hood runs Chromium 83.0.4103.122 with security fixes up to
  version 86.0.4240.183 and patches were taken from r540991 of www/chromium.

* Also adjust some patches to avoid hardcoding of ${LOCALBASE} and remove a
  redundant blank line.

Changelog:

* [QTBUG-84632] Warn about QtWebengineProcess launching from network share
                on Windows.
* [QTBUG-85363] Handle non-ASCII names for PulseAudio
* [QTBUG-85494] Fix regression crash when not handling
                QQuickWebEngineNewViewRequest
* [QTBUG-85817] Fix crashes on resize
* [QTBUG-86672] Fix remapped menu key being mapped back to menu key
* [QTBUG-86945] Fix crash when opening a PDF in debug build on windows.
* [QTBUG-87129] Mention node.js build-time dependency
* The QtWebEngineProcess now has a version number
* The old compositor has been removed and can no longer be restored using
  command line argument.

Approved by:	tcberner (kde)
Differential Revision:	https://reviews.freebsd.org/D27587
2020-12-19 07:57:02 +00:00

24 lines
851 B
Python

--- src/3rdparty/gn/build/gen.py.orig 2020-03-16 14:04:24 UTC
+++ src/3rdparty/gn/build/gen.py
@@ -69,6 +69,9 @@ class Platform(object):
def is_aix(self):
return self._platform == 'aix'
+ def is_freebsd(self):
+ return self._platform == 'freebsd'
+
def is_posix(self):
return self._platform in ['linux', 'freebsd', 'darwin', 'aix', 'openbsd']
@@ -371,6 +374,11 @@ def WriteGNNinja(path, platform, host, options):
elif platform.is_aix():
cflags_cc.append('-maix64')
ldflags.append('-maix64')
+ elif platform.is_freebsd():
+ cflags.extend(['-Wno-deprecated-register', '-Wno-parentheses-equality'])
+ ldflags.extend(['-pthread'])
+ libs.extend(['-lexecinfo', '-lkvm', '-lutil'])
+ include_dirs += ['%%LOCALBASE%%/include']
if platform.is_posix():
ldflags.append('-pthread')