summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2005-04-16 09:20:18 +0000
committeragc <agc@pkgsrc.org>2005-04-16 09:20:18 +0000
commit9318dc5a01755641efada615e6ef6ae2a45f0797 (patch)
treec2c6bdc01b5a5d03dcacf495c5896b66c7e94751 /mk/bsd.pkg.mk
parent1a01c633ed0dccb82e4575c22a4ebd34bb5570f8 (diff)
downloadpkgsrc-9318dc5a01755641efada615e6ef6ae2a45f0797.tar.gz
Occasionally we do not want the "--host=${MACHINE_GNU_PLATFORM}" argument
added if GNU_CONFIGURE is specified - the arla and forthcoming openafs packages are ones that need to be able to let the GNU configure script guess for itself, rather than hardcoding the value. Add a switch called USE_GNU_CONFIGURE_HOST to determine whether the --host argument is provided to the GNU configure script. This is switched on (it has a "yes" value) by default, so the previous behaviour applies, but allows us to specify this value on a package-by-package basis. Documentation changes for this are also forthcoming.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 85f02eb7d51..4eb19c8671c 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1611 2005/04/15 02:04:57 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1612 2005/04/16 09:20:18 agc Exp $
#
# This file is in the public domain.
#
@@ -849,7 +849,10 @@ _ALLFILES?= ${_DISTFILES} ${_PATCHFILES}
# GNU configure script.
#
GNU_CONFIGURE_PREFIX?= ${PREFIX}
+USE_GNU_CONFIGURE_HOST?= yes
+. if !empty(USE_GNU_CONFIGURE_HOST:M[yY][eE][sS])
CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM}
+. endif
CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX}
HAS_CONFIGURE= yes
. if defined(USE_X11)