summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortv <tv>1999-05-24 20:39:35 +0000
committertv <tv>1999-05-24 20:39:35 +0000
commitb4ae5ad32d8b7a07f0fd5aef93d8427a24e6cd18 (patch)
tree65bbd73001946c26475423bf378f0a1854ed3cb6 /mk
parent2dceb46da5667da02f175cdab8fb327156a5ac34 (diff)
downloadpkgsrc-b4ae5ad32d8b7a07f0fd5aef93d8427a24e6cd18.tar.gz
Change {ONLY,NOT}_FOR_{ARCH,OPSYS} format to {ONLY,NOT}_FOR_PLATFORM
pattern match format. Minor pkglint along the way.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk19
1 files changed, 8 insertions, 11 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 77a659caaa8..a805b95da30 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.272 1999/05/24 18:42:00 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.273 1999/05/24 20:39:50 tv Exp $
#
# This file is in the public domain.
#
@@ -17,16 +17,6 @@
# NEVER override the "regular" targets unless you want to open
# a major can of worms.
-##### Transitional compatibility: #####
-ONLY_FOR_OPSYS?= *
-ONLY_FOR_ARCHS?= *
-.for __opsys__ in ${ONLY_FOR_OPSYS}
-.for __arch__ in ${ONLY_FOR_ARCHS}
-ONLY_FOR_PLATFORM+= ${__opsys__}-*-${__arch__}
-.endfor
-.endfor
-NOT_FOR_PLATFORM+= ${NOT_FOR_OPSYS:S/$/-*-*/} ${NOT_FOR_ARCHS:S/^/*-*-/}
-
##### Include any preferences, if not already included, and common definitions
.include "../../mk/bsd.prefs.mk"
@@ -618,6 +608,13 @@ EXTRACT_ONLY?= ${DISTFILES}
@${FALSE}
.endif
+.if defined(ONLY_FOR_ARCHS) || defined(NOT_FOR_ARCHS) \
+ || defined(ONLY_FOR_OPSYS) || defined(NOT_FOR_OPSYS)
+.BEGIN:
+ @${ECHO_MSG} 'ONLY/NOT_FOR_ARCHS/OPSYS are deprecated and must be replaced with ONLY/NOT_FOR_PLATFORM.'
+ @${FALSE}
+.endif
+
# Note this has to start with a capital letter (or more accurately, it
# shouldn't match "[a-z]*"), see the target "delete-package-links" below.
PKGREPOSITORYSUBDIR?= All