summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-03-26 20:37:09 +0000
committertnn <tnn@pkgsrc.org>2022-03-26 20:37:09 +0000
commit9b41bb009667da8b020ef43a60a485d201935050 (patch)
tree2ed40b2c7f51f58515951c52e9b17780f8d58d85 /x11
parent760e23eff29347d60d529601b7aee8a2b3454ccd (diff)
downloadpkgsrc-9b41bb009667da8b020ef43a60a485d201935050.tar.gz
qt5: omit wayland dependency in meta package if not supported
Diffstat (limited to 'x11')
-rw-r--r--x11/qt5/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/x11/qt5/Makefile b/x11/qt5/Makefile
index c0f5f742f2f..3d92bf4fe9c 100644
--- a/x11/qt5/Makefile
+++ b/x11/qt5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2020/01/21 20:25:36 adam Exp $
+# $NetBSD: Makefile,v 1.20 2022/03/26 20:37:09 tnn Exp $
DISTNAME= qt5-${QTVERSION}
@@ -35,8 +35,11 @@ DEPENDS+= qt5-qtxmlpatterns-${QTVERSION}{,nb[0-9]*}:../../x11/qt5-qtxmlpatterns
.if ${OPSYS} == "Darwin"
DEPENDS+= qt5-qtmacextras-${QTVERSION}{,nb[0-9]*}:../../x11/qt5-qtmacextras
.else
-DEPENDS+= qt5-qtwayland-${QTVERSION}{,nb[0-9]*}:../../x11/qt5-qtwayland
DEPENDS+= qt5-qtx11extras-${QTVERSION}{,nb[0-9]*}:../../x11/qt5-qtx11extras
.endif
+.include "../../devel/wayland/platform.mk"
+.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
+DEPENDS+= qt5-qtwayland-${QTVERSION}{,nb[0-9]*}:../../x11/qt5-qtwayland
+.endif
.include "../../mk/bsd.pkg.mk"