diff --git a/graphics/qt5-wayland/Makefile b/graphics/qt5-wayland/Makefile index 3159908f0b67..93ffcacbfa27 100644 --- a/graphics/qt5-wayland/Makefile +++ b/graphics/qt5-wayland/Makefile @@ -1,25 +1,26 @@ PORTNAME= wayland PORTVERSION= ${QT5_VERSION}${QT5_KDE_PATCH} +PORTREVISION= 1 CATEGORIES= graphics wayland PKGNAMEPREFIX= qt5- MAINTAINER= kde@FreeBSD.org COMMENT= Qt5 wrapper for Wayland BUILD_DEPENDS= ${LOCALBASE}/include/libdrm/drm_fourcc.h:graphics/libdrm LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libwayland-egl.so:graphics/wayland \ libxkbcommon.so:x11/libxkbcommon USES= compiler:c++11-lang gl gnome pkgconfig qmake:norecursive \ qt-dist:5,wayland xorg USE_GL= egl gl USE_GNOME= glib20 USE_QT= core dbus gui declarative \ buildtools_build qmake_build USE_XORG= x11 xcomposite QT_BINARIES= yes .include diff --git a/graphics/qt5-wayland/files/patch-qtwayland.pro b/graphics/qt5-wayland/files/patch-qtwayland.pro index e321fa2fd586..01c983412049 100644 --- a/graphics/qt5-wayland/files/patch-qtwayland.pro +++ b/graphics/qt5-wayland/files/patch-qtwayland.pro @@ -1,8 +1,8 @@ ---- qtwayland.pro.orig 2017-06-23 10:50:50 UTC +--- qtwayland.pro.orig 2022-06-20 20:17:21 UTC +++ qtwayland.pro @@ -1,3 +1,4 @@ --requires(linux:!android) +-requires(linux:!android|macos|qnx) +requires(!android) +requires(linux|freebsd) requires(qtHaveModule(gui)) load(qt_parts) diff --git a/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp b/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp new file mode 100644 index 000000000000..2980795536e9 --- /dev/null +++ b/graphics/qt5-wayland/files/patch-src_client_qwaylandshmbackingstore.cpp @@ -0,0 +1,11 @@ +--- src/client/qwaylandshmbackingstore.cpp.orig 2022-06-20 20:17:21 UTC ++++ src/client/qwaylandshmbackingstore.cpp +@@ -76,6 +76,8 @@ QWaylandShmBuffer::QWaylandShmBuffer(QWaylandDisplay * + + #ifdef SYS_memfd_create + fd = syscall(SYS_memfd_create, "wayland-shm", MFD_CLOEXEC); ++#elif defined(__FreeBSD__) && __FreeBSD_version >= 1300048 ++ fd = memfd_create("wayland-shm", MFD_CLOEXEC); + #endif + + QScopedPointer filePointer; diff --git a/graphics/qt5-wayland/files/patch-src_hardwareintegration_compositor_linux-dmabuf-unstable-v1_linuxdmabuf.h b/graphics/qt5-wayland/files/patch-src_hardwareintegration_compositor_linux-dmabuf-unstable-v1_linuxdmabuf.h index eae8123a0da4..a33cb765c388 100644 --- a/graphics/qt5-wayland/files/patch-src_hardwareintegration_compositor_linux-dmabuf-unstable-v1_linuxdmabuf.h +++ b/graphics/qt5-wayland/files/patch-src_hardwareintegration_compositor_linux-dmabuf-unstable-v1_linuxdmabuf.h @@ -1,11 +1,11 @@ ---- src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h.orig 2020-10-27 08:02:11 UTC +--- src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h.orig 2022-06-20 20:17:21 UTC +++ src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h -@@ -44,6 +44,8 @@ +@@ -46,6 +46,8 @@ #include #include +#include + // compatibility with libdrm <= 2.4.74 #ifndef DRM_FORMAT_RESERVED #define DRM_FORMAT_RESERVED ((1ULL << 56) - 1)