summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2007-02-16 16:09:23 +0000
committertonio <tonio@pkgsrc.org>2007-02-16 16:09:23 +0000
commit2a3096f51cb469e7041704a74d71eb152041c908 (patch)
treec2770ab2118f871df296fb4e176371527e4de747 /mk
parente74fd916c548bcf2eec0231f9e1388d449c266e4 (diff)
downloadpkgsrc-2a3096f51cb469e7041704a74d71eb152041c908.tar.gz
Make sure MACHINE_ARCH is set to x86_64 for FreeBSD-amd64
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.prefs.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 6406c58f4b4..8709f5f52eb 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.243 2006/12/27 14:29:45 joerg Exp $
+# $NetBSD: bsd.prefs.mk,v 1.244 2007/02/16 16:09:23 tonio Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -131,7 +131,11 @@ LOWER_VENDOR?= pc
.elif ${OPSYS} == "FreeBSD"
LOWER_OPSYS?= freebsd
LOWER_ARCH!= ${UNAME} -p
+. if ${LOWER_ARCH} == "amd64"
+MACHINE_ARCH= x86_64
+. else
MACHINE_ARCH= ${LOWER_ARCH}
+. endif
MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH:Q}
LOWER_OPSYS_VERSUFFIX!= echo ${LOWER_OS_VERSION} | ${CUT} -c -1
. if ${LOWER_ARCH} == "i386"