diff options
author | rillig <rillig> | 2005-10-31 09:42:19 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-10-31 09:42:19 +0000 |
commit | e1e4955e29caa8ba63bc913afb14c8f9e2d63835 (patch) | |
tree | 32dc7d6bba409d0bf0d306783f913d3ba8847ac3 /mk | |
parent | d8150ccf4664d56c8fbe34dddc4b23d088775ce0 (diff) | |
download | pkgsrc-e1e4955e29caa8ba63bc913afb14c8f9e2d63835.tar.gz |
Added two new variables, GNU_CONFIGURE_INFODIR and GNU_CONFIGURE_MANDIR.
Up to now, a package that wanted to use a different location for
--mandir had to first define CONFIGURE_HAS_MANDIR=no and then
CONFIGURE_ARGS+=--mandir=${...}, which looks weird. Now it only has to
set GNU_CONFIGURE_MANDIR.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 7797927dced..3e9a724dc8f 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1735 2005/10/24 23:23:00 wiz Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1736 2005/10/31 09:42:19 rillig Exp $ # # This file is in the public domain. # @@ -715,24 +715,26 @@ _ALLFILES?= ${_DISTFILES} ${_PATCHFILES} BUILD_DEFS+= _DISTFILES _PATCHFILES .if defined(GNU_CONFIGURE) -# -# GNU_CONFIGURE_PREFIX is the argument to the --prefix option passed to the -# GNU configure script. -# +HAS_CONFIGURE= yes + GNU_CONFIGURE_PREFIX?= ${PREFIX} +CONFIGURE_ARGS+= --prefix=${GNU_CONFIGURE_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 + CONFIGURE_HAS_INFODIR?= yes +GNU_CONFIGURE_INFODIR?= ${GNU_CONFIGURE_PREFIX}/${INFO_DIR} . if !empty(INFO_FILES) && !empty(CONFIGURE_HAS_INFODIR:M[yY][eE][sS]) -CONFIGURE_ARGS+= --infodir=${PREFIX}/${INFO_DIR} +CONFIGURE_ARGS+= --infodir=${GNU_CONFIGURE_INFODIR:Q} . endif + CONFIGURE_HAS_MANDIR?= yes +GNU_CONFIGURE_MANDIR?= ${GNU_CONFIGURE_PREFIX}/${PKGMANDIR} . if !empty(CONFIGURE_HAS_MANDIR:M[yY][eE][sS]) -CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} +CONFIGURE_ARGS+= --mandir=${GNU_CONFIGURE_MANDIR:Q} . endif # # By default, override config.guess and config.sub for GNU configure |