summaryrefslogtreecommitdiff
path: root/meta-pkgs
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-12-01 12:48:17 +0000
committernia <nia@pkgsrc.org>2021-12-01 12:48:17 +0000
commitb5d854015399ebd64cb7625458bf4e7df85755d0 (patch)
tree325930d31d9125b480477cb124b70d67c6dcdc4a /meta-pkgs
parent51471b1b678fb7a3876b0f08f14b5a73c79c91f5 (diff)
downloadpkgsrc-b5d854015399ebd64cb7625458bf4e7df85755d0.tar.gz
modular-xorg: Add avoid-duplicate.mk to avoid uploading packages when
the entire package set is built against native X11
Diffstat (limited to 'meta-pkgs')
-rw-r--r--meta-pkgs/modular-xorg/avoid-duplicate.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-pkgs/modular-xorg/avoid-duplicate.mk b/meta-pkgs/modular-xorg/avoid-duplicate.mk
new file mode 100644
index 00000000000..36ea9e07967
--- /dev/null
+++ b/meta-pkgs/modular-xorg/avoid-duplicate.mk
@@ -0,0 +1,11 @@
+# $NetBSD: avoid-duplicate.mk,v 1.1 2021/12/01 12:48:17 nia Exp $
+
+BUILTIN_PKG= ${X11_BUILTIN_NAME}
+
+.include "${.INCLUDEDFROMDIR}/builtin.mk"
+
+.if ${X11_TYPE} == "native" && ${USE_BUILTIN.${X11_BUILTIN_NAME}} == "yes"
+RESTRICTED= "Package set is using native X11 component"
+NO_BIN_ON_FTP= ${RESTRICTED}
+NO_BIN_ON_CDROM= ${RESTRICTED}
+.endif