git: 2e79e158e461 - main - x11-servers/xwayland-devel: pass --skip-subprojects from within ninja

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 28 Apr 2023 22:35:31 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2e79e158e461e50c39d1ec5ce334c4de53b65a89

commit 2e79e158e461e50c39d1ec5ce334c4de53b65a89
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-04-28 22:14:24 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-04-28 22:34:36 +0000

    x11-servers/xwayland-devel: pass --skip-subprojects from within ninja
---
 x11-servers/xwayland-devel/Makefile | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/x11-servers/xwayland-devel/Makefile b/x11-servers/xwayland-devel/Makefile
index 00e2f6b25e24..aef30b0b9c6a 100644
--- a/x11-servers/xwayland-devel/Makefile
+++ b/x11-servers/xwayland-devel/Makefile
@@ -80,12 +80,9 @@ NVIDIA_BUILD_DEPENDS=	egl-wayland>0:graphics/egl-wayland
 NVIDIA_MESON_TRUE=	xwayland_eglstream
 
 .ifdef GL_TUPLE
-post-install:
-# XXX USES=meson invokes ninja directly, so doesn't support --skip-subprojects
-	@${RM} -r ${STAGEDIR}${PREFIX}/include/GL
-	@${RM} -r ${STAGEDIR}${PREFIX}/include/X11
-	@${RM} -r ${STAGEDIR}${PREFIX}/share/doc/xorgproto
-	@${RM} -r ${STAGEDIR}${PREFIX}/share/pkgconfig
+post-configure:
+	@${REINPLACE_CMD} 's/meson install/& \
+		--skip-subprojects/' ${BUILD_WRKSRC}/build.ninja
 .endif
 
 .include <bsd.port.mk>