summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron>1999-05-24 21:25:00 +0000
committertron <tron>1999-05-24 21:25:00 +0000
commitc8b6bd921c4cdadd97864fabf43cb33efc9d9c98 (patch)
tree256ffdadaacbc57095e4b47181d5d5fe5b781a97 /mk
parent12879801f2240593b975afa4a9915ace746a3e64 (diff)
downloadpkgsrc-c8b6bd921c4cdadd97864fabf43cb33efc9d9c98.tar.gz
Fix broken "ONLY_FOR_PLATFORM" check.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index a805b95da30..87b31318683 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.273 1999/05/24 20:39:50 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.274 1999/05/24 21:25:00 tron Exp $
#
# This file is in the public domain.
#
@@ -21,7 +21,7 @@
.include "../../mk/bsd.prefs.mk"
##### Define __PLATFORM_OK only if the OS matches the pkg's allowed list.
-.if !empty(ONLY_FOR_PLATFORM)
+.if defined(ONLY_FOR_PLATFORM) && !empty(ONLY_FOR_PLATFORM)
.for __tmp__ in ${ONLY_FOR_PLATFORM}
.if ${MACHINE_PLATFORM:M${__tmp__}} != ""
__PLATFORM_OK?=