summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1999-05-24 20:39:35 +0000
committertv <tv@pkgsrc.org>1999-05-24 20:39:35 +0000
commit5c60ed579430954635a901b457a1fe4128eaca47 (patch)
tree65bbd73001946c26475423bf378f0a1854ed3cb6 /mk
parent42a1a676be446ce3279f0baeeda7b3dcc1002c13 (diff)
downloadpkgsrc-5c60ed579430954635a901b457a1fe4128eaca47.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