From 13ed6251ebb031b4bc59db8137bf4db251e53a86 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 12 Jul 2007 18:59:15 +0000 Subject: No longer pass install_sh in the environment to GNU configure scripts. We fix GNU configure script stupidity by directly replacing the stock install-sh script provided by the software with the BSD install-compatible sysutils/install-sh script. A new package-settable variable comes to life: INSTALL_SH_OVERRIDE is a list of files relative to WRKSRC which should be overridden by the install-sh script from sysutils/install-sh. If not defined or set to "no", then no files are overridden. Possible values: no, defined, undefined. Default value: defined when GNU_CONFIGURE is defined, undefined otherwise. Get rid of the install_sh tool, which is no longer needed. --- mk/configure/configure.mk | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'mk/configure/configure.mk') diff --git a/mk/configure/configure.mk b/mk/configure/configure.mk index 4166ba62f7e..3853dfb3616 100644 --- a/mk/configure/configure.mk +++ b/mk/configure/configure.mk @@ -1,4 +1,4 @@ -# $NetBSD: configure.mk,v 1.17 2007/03/15 22:54:24 rillig Exp $ +# $NetBSD: configure.mk,v 1.18 2007/07/12 18:59:15 jlam Exp $ # # = Package-settable variables = # @@ -16,6 +16,16 @@ # CONFIGURE_ARGS is the list of arguments that is passed to the # configure script. # +# INSTALL_SH_OVERRIDE is a list of files relative to WRKSRC which +# should be overridden by the install-sh script from +# sysutils/install-sh. If not defined or set to "no", then +# no files are overridden. +# +# Possible values: no, defined, undefined. +# +# Default value: defined when GNU_CONFIGURE is defined, undefined +# otherwise. +# # OVERRIDE_GNU_CONFIG_SCRIPTS # Whether to override the GNU config.guess and config.sub scripts # with the pkgsrc versions. @@ -53,6 +63,9 @@ _BUILD_DEFS+= CONFIGURE_ENV CONFIGURE_ARGS .if defined(OVERRIDE_GNU_CONFIG_SCRIPTS) . include "${PKGSRCDIR}/mk/configure/config-override.mk" .endif +.if defined(INSTALL_SH_OVERRIDE) && empty(INSTALL_SH_OVERRIDE:M[Nn][Oo]) +. include "${PKGSRCDIR}/mk/configure/install-sh-override.mk" +.endif .if defined(USE_LIBTOOL) . include "${PKGSRCDIR}/mk/configure/libtool-override.mk" .endif -- cgit v1.2.3