pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install Mimic how bsd.pkg.mk calls the GN...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6358898be670
branches:  trunk
changeset: 479228:6358898be670
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Aug 09 06:21:24 2004 +0000

description:
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:

 pkgtools/pkg_install/Makefile |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r a830c2c1a334 -r 6358898be670 pkgtools/pkg_install/Makefile
--- a/pkgtools/pkg_install/Makefile     Sun Aug 08 22:57:04 2004 +0000
+++ b/pkgtools/pkg_install/Makefile     Mon Aug 09 06:21:24 2004 +0000
@@ -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 @@
        @${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                  \



Home | Main Index | Thread Index | Old Index