summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam>2004-08-09 06:21:24 +0000
committerjlam <jlam>2004-08-09 06:21:24 +0000
commitf6f1afb120862a240853f2a01cf697ab97e9dc78 (patch)
treed3ed185a25ac4137a8f35d144bd12e96be495d24 /pkgtools
parent49ed7717a85eecdc3cb9befbf29e1775fa282ca3 (diff)
downloadpkgsrc-f6f1afb120862a240853f2a01cf697ab97e9dc78.tar.gz
Mimic how bsd.pkg.mk calls the GNU configure script in do-configure when
configuring libnbcompat. This adds more things to the environment, e.g. AWK, CFLAGS, CPPFLAGS, etc. This should fix problems building on IRIX 5.3 where the system nawk wasn't being properly found.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile
index ac4d7907ca4..3da68bdccc4 100644
--- a/pkgtools/pkg_install/Makefile
+++ b/pkgtools/pkg_install/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.101 2004/04/28 11:10:37 tv Exp $
+# $NetBSD: Makefile,v 1.102 2004/08/09 06:21:24 jlam Exp $
# Notes to package maintainers:
#
@@ -71,8 +71,12 @@ do-extract:
@${CP} -Rp ${FILESDIR} ${WRKSRC}
pre-configure:
- @cd ${LIBNBCOMPAT_SRCDIR} && ${SETENV} ${CONFIGURE_ENV:NLIBS=*} \
- CC=${CC} CPPFLAGS=${CPPFLAGS:Q} ./configure && ${MAKE_PROGRAM}
+ ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \
+ cd ${LIBNBCOMPAT_SRCDIR} && ${SETENV} \
+ AWK="${AWK}" CC="${CC}" CFLAGS="${CFLAGS:M*}" \
+ CPPFLAGS="${CPPFLAGS:M*}" \
+ ${CONFIGURE_ENV:NLIBS=*} ${CONFIG_SHELL} \
+ ${CONFIGURE_SCRIPT} && ${MAKE_PROGRAM}
post-install:
if [ ! -f ${PKG_DBDIR}/pkgdb.byfile.db ]; then \