From 413aeecacaaf5d23de6324803da96b7827f553ce Mon Sep 17 00:00:00 2001 From: agc Date: Fri, 26 Oct 2001 14:09:59 +0000 Subject: At present, if there is a pre- or post- script in the scripts/ directory, it will be run automatically as part of the build process, by bsd.pkg.mk. There are now exactly 5 packages in pkgsrc which use this facility, and yet, for every package build, the existence of a script is checked by bsd.pkg.mk once before the target is executed, and once afterwards. This incurs needless overhead. Move the separate pre- and post- script handling out of bsd.pkg.mk into the individual package Makefiles, where it's much more obvious what is happening, anyway. --- comms/mgetty+sendfax/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'comms') diff --git a/comms/mgetty+sendfax/Makefile b/comms/mgetty+sendfax/Makefile index 7314209e672..a6a639b78c5 100644 --- a/comms/mgetty+sendfax/Makefile +++ b/comms/mgetty+sendfax/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2001/09/27 23:17:50 jlam Exp $ +# $NetBSD: Makefile,v 1.18 2001/10/26 14:10:00 agc Exp $ # FreeBSD Id: Makefile,v 1.25 1998/07/16 06:44:37 vanilla Exp # @@ -24,6 +24,9 @@ MAKE_ENV+= MGETTY_CONFDIR=${MGETTY_CONFDIR} USE_BUILDLINK_ONLY= # defined +do-configure: + cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure + post-configure: ${SED} -e 's#$${INSTALL_DATA_DIR}#${INSTALL_DATA_DIR}#' \ -e 's#$${MGETTY_CONFDIR}#${MGETTY_CONFDIR}#' \ -- cgit v1.2.3