summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorform <form@openbsd.org>1998-11-17 06:39:25 +0000
committerform <form@openbsd.org>1998-11-17 06:39:25 +0000
commiteb9437c4cfb2bd56e564334479cefa3ebab848bf (patch)
tree41eecadb2c6b0ab2e61f9c4b6a15e189d58d52d3
parentAdd adw documention, make adw.4 and advansys.4 links. (diff)
downloadwireguard-openbsd-eb9437c4cfb2bd56e564334479cefa3ebab848bf.tar.xz
wireguard-openbsd-eb9437c4cfb2bd56e564334479cefa3ebab848bf.zip
Test ${ONLY_FOR_ARCHS} against both ${ARCH} and ${MACHINE_ARCH}.
-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 c7a80156fe9..22f741d692a 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.47 1998/11/05 10:36:14 espie Exp $
+# $OpenBSD: bsd.port.mk,v 1.48 1998/11/17 06:39:25 form Exp $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -965,12 +965,16 @@ 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} == "${__ARCH}"
+.if (${MACHINE_ARCH} == "${__ARCH}") || (${ARCH} == "${__ARCH}")
__ARCH_OK= 1
.endif
.endfor
.if !defined(__ARCH_OK)
+.if ${MACHINE_ARCH} == "${ARCH}"
IGNORE= "is only for ${ONLY_FOR_ARCHS}, not ${MACHINE_ARCH}"
+.else
+IGNORE= "is only for ${ONLY_FOR_ARCHS}, not ${MACHINE_ARCH} \(${ARCH}\)"
+.endif
.endif
.elif defined(COMES_WITH)
.if ( ${OPSYS_VER} >= ${COMES_WITH} )