summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-08-19 08:16:21 +0000
committernia <nia@pkgsrc.org>2020-08-19 08:16:21 +0000
commitdfa5debd86d72e1721ec695d13025f5d04e1bed6 (patch)
tree34533f1127616d719dbdf69fa514e7aca0f35f63 /x11
parentfcc319212f2d886d1c7d613347ded2d972d2b941 (diff)
downloadpkgsrc-dfa5debd86d72e1721ec695d13025f5d04e1bed6.tar.gz
Skip building only-useful-with-Wayland packages on unsupported systems
Diffstat (limited to 'x11')
-rw-r--r--x11/modular-xorg-xwayland/Makefile8
-rw-r--r--x11/qt5-qtwayland/Makefile8
2 files changed, 14 insertions, 2 deletions
diff --git a/x11/modular-xorg-xwayland/Makefile b/x11/modular-xorg-xwayland/Makefile
index 4ed833cf6b8..1b8245c732d 100644
--- a/x11/modular-xorg-xwayland/Makefile
+++ b/x11/modular-xorg-xwayland/Makefile
@@ -1,9 +1,15 @@
-# $NetBSD: Makefile,v 1.8 2020/07/31 16:50:57 maya Exp $
+# $NetBSD: Makefile,v 1.9 2020/08/19 08:16:21 nia Exp $
DISTNAME= xorg-server-${XORG_VERSION}
PKGNAME= modular-xorg-xwayland-${XORG_VERSION}
PKGREVISION= 2
+.include "../../devel/wayland/platform.mk"
+
+.if empty(PLATFORM_SUPPORTS_WAYLAND:M[Yy][Ee][Ss])
+PKG_SKIP_REASON+= "Platform does not support Wayland"
+.endif
+
DISTINFO_FILE= ${.CURDIR}/../../x11/modular-xorg-server/distinfo
PATCHDIR= ${.CURDIR}/../../x11/modular-xorg-server/patches
diff --git a/x11/qt5-qtwayland/Makefile b/x11/qt5-qtwayland/Makefile
index c4b7774d71c..541469a2e73 100644
--- a/x11/qt5-qtwayland/Makefile
+++ b/x11/qt5-qtwayland/Makefile
@@ -1,10 +1,16 @@
-# $NetBSD: Makefile,v 1.11 2020/08/17 20:20:34 leot Exp $
+# $NetBSD: Makefile,v 1.12 2020/08/19 08:16:21 nia Exp $
DISTNAME= qtwayland-everywhere-src-${QTVERSION}
PKGNAME= qt5-qtwayland-${QTVERSION}
PKGREVISION= 1
COMMENT= Qt5 module for Wayland support
+.include "../../devel/wayland/platform.mk"
+
+.if empty(PLATFORM_SUPPORTS_WAYLAND:M[Yy][Ee][Ss])
+PKG_SKIP_REASON+= "Platform does not support Wayland"
+.endif
+
BUILD_TARGET= sub-src
INSTALL_ENV+= INSTALL_ROOT=${DESTDIR}
INSTALLATION_DIRS+= lib/pkgconfig