summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorOleg Safiullin <form@cvs.openbsd.org>1998-07-17 04:10:21 +0000
committerOleg Safiullin <form@cvs.openbsd.org>1998-07-17 04:10:21 +0000
commit6ed55286588674abaf0e82fa1d91cb72ba2c5b51 (patch)
tree909dd87b0882f2b5138cb6fd245604f1940ccf76 /share
parentcbba5b951bf99e90b93b7d203d667ba415a307f3 (diff)
fix ONLY_FOR_ARCH test in bsd.port.mk
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index d19fd43d148..e974ab2f896 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
-# $OpenBSD: bsd.port.mk,v 1.37 1998/07/13 03:11:14 todd Exp $
+# $OpenBSD: bsd.port.mk,v 1.38 1998/07/17 04:10:20 form Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -850,13 +850,17 @@ IGNORE= "uses X11, but ${X11BASE} not found"
IGNORE= "is marked as broken: ${BROKEN}"
.elif defined(ONLY_FOR_ARCHS)
.for __ARCH in ${ONLY_FOR_ARCHS}
-.if ${MACHINE} == "${__ARCH}"
+.if ( ${MACHINE} == "${__ARCH}" || ${MACHINE_ARCH} == "${__ARCH}" )
__ARCH_OK= 1
.endif
.endfor
.if !defined(__ARCH_OK)
+.if ( ${MACHINE} != ${MACHINE_ARCH} )
+IGNORE= "is only for ${ONLY_FOR_ARCHS}, not ${MACHINE} \(${MACHINE_ARCH}\)"
+.else
IGNORE= "is only for ${ONLY_FOR_ARCHS}, not ${MACHINE}"
.endif
+.endif
.elif defined(COMES_WITH)
.if ( ${OPSYS_VER} >= ${COMES_WITH} )
IGNORE= "comes with ${OPSYS} as of release ${COMES_WITH}"