diff options
author | jlam <jlam@pkgsrc.org> | 2002-06-23 03:15:28 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-06-23 03:15:28 +0000 |
commit | 7fc61ff015cc796f46a7705e9a07e54712551110 (patch) | |
tree | 5106e31cd147ee229d69b36bfe26156d5318ca5a /mk/bsd.pkg.mk | |
parent | 51dc28b799393c154661755986110411304e3a45 (diff) | |
download | pkgsrc-7fc61ff015cc796f46a7705e9a07e54712551110.tar.gz |
New variable GNU_CONFIGURE_PREFIX whose value is the argument to the
--prefix option passed to a GNU configure script. It defaults to
${PREFIX}. This should help simplify the packages out there that avoid
setting GNU_CONFIGURE=yes because they need a custom --prefix option.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index daa08b7b450..1b02d55fc7a 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.995 2002/06/23 02:23:23 kei Exp $ +# $NetBSD: bsd.pkg.mk,v 1.996 2002/06/23 03:15:28 jlam Exp $ # # This file is in the public domain. # @@ -964,7 +964,13 @@ CONFIGURE_SCRIPT?= ./configure CONFIGURE_ENV+= PATH=${PATH}:${LOCALBASE}/bin:${X11BASE}/bin .if defined(GNU_CONFIGURE) -CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} --prefix=${PREFIX} +# +# CONFIGURE_PREFIX is the argument to the --prefix option passed to the +# GNU configure script. +# +GNU_CONFIGURE_PREFIX?= ${PREFIX} +CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} +CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_PREFIX} HAS_CONFIGURE= yes . if ${X11PREFIX} == ${LOCALBASE} . if !defined(X11_BUILDLINK_MK) |