summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-04-03 13:45:49 +0000
committerobache <obache@pkgsrc.org>2013-04-03 13:45:49 +0000
commit3db2aabb72d8e9928b9272971f1fd4c0fe30c9a6 (patch)
tree37d810d630dbda9572a2f4db31cffd79f5f5cc41 /mk/bsd.prefs.mk
parent65b863754315d7d2d8ad40502e46d4d09a2dc699 (diff)
downloadpkgsrc-3db2aabb72d8e9928b9272971f1fd4c0fe30c9a6.tar.gz
normalize LOWER_ARCH i?86 for Cygwin, same as Linux.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 60c6936db79..90797445a59 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.334 2013/03/01 00:07:46 tcort Exp $
+# $NetBSD: bsd.prefs.mk,v 1.335 2013/04/03 13:45:49 obache Exp $
#
# This file includes the mk.conf file, which contains the user settings.
#
@@ -131,7 +131,9 @@ LOWER_OPSYS?= bsdi
.elif ${OPSYS} == "Cygwin"
LOWER_OPSYS?= cygwin
LOWER_VENDOR?= pc
-LOWER_ARCH!= ${UNAME} -m
+. if !defined(LOWER_ARCH)
+LOWER_ARCH!= ${UNAME} -m | sed -e 's/i.86/i386/'
+. endif # !defined(LOWER_ARCH)
_OS_VERSION!= ${UNAME} -r
OS_VERSION= ${_OS_VERSION:C/\(.*\)//}
OS_VARIANT!= ${UNAME} -s