Skip building only-useful-with-Wayland packages on unsupported systems

This commit is contained in:
nia 2020-08-19 08:16:21 +00:00
parent 13b7a54be1
commit 0ea25cbff6
3 changed files with 21 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2020/08/17 20:17:33 leot Exp $
# $NetBSD: Makefile,v 1.6 2020/08/19 08:16:21 nia Exp $
DISTNAME= wld-0.0.0.20200220
PKGREVISION= 2
@ -29,6 +29,12 @@ MAKE_FLAGS+= DRM_DRIVERS=${WLD_DRIVERS:Q}
PKGCONFIG_OVERRIDE+= wld.pc.in
.include "../../devel/wayland/platform.mk"
.if empty(PLATFORM_SUPPORTS_WAYLAND:M[Yy][Ee][Ss])
PKG_SKIP_REASON+= "Platform does not support Wayland"
.endif
.include "../../devel/wayland/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
BUILDLINK_API_DEPENDS.libdrm+= libdrm>=2.4.83

View file

@ -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

View file

@ -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