summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-08-28 14:03:48 +0000
committergarbled <garbled@pkgsrc.org>1998-08-28 14:03:48 +0000
commite7a8892b6e6858794143d6c838a780e2b44763ef (patch)
tree652da3f66730bff967367b66b4d5e0cfae8bc1a0 /mk
parent22c22a00688b5c89aba1e322e655d3843047b3d0 (diff)
downloadpkgsrc-e7a8892b6e6858794143d6c838a780e2b44763ef.tar.gz
Add new NOT_FOR_ARCHS variable, that has the reverse logic of
ONLY_FOR_ARCHS.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk17
1 files changed, 15 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 5d3e15639d3..8faf145e320 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.152 1998/08/28 11:13:23 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.153 1998/08/28 14:03:48 garbled Exp $
#
# This file is in the public domain.
#
@@ -33,6 +33,14 @@ __ARCH_OK?= 1
__ARCH_OK?= 1
.endif
+.if defined(NOT_FOR_ARCHS)
+.for __NARCH in ${NOT_FOR_ARCHS}
+.if ${MACHINE_ARCH:M${__NARCH}} != ""
+.undef __ARCH_OK
+.endif
+.endfor
+.endif
+
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
.endif
@@ -644,7 +652,12 @@ package:
.MAIN: all
fetch fetch-list extract patch configure build install reinstall package checkpatch checksum makesum all:
- @echo "This port is only for ${ONLY_FOR_ARCHS},"
+.if defined(ONLY_FOR_ARCHS)
+ @echo "This pkg is only for ${ONLY_FOR_ARCHS},"
+.endif
+.if defined(NOT_FOR_ARCHS)
+ @echo "This pkg does not run on ${NOT_FOR_ARCHS},"
+.endif
@echo "and you are running ${MACHINE_ARCH}."
.else