pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/platform The gawk that comes with Interix is 2.15, ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c988ec90cad4
branches:  trunk
changeset: 490737:c988ec90cad4
user:      tv <tv%pkgsrc.org@localhost>
date:      Sat Mar 19 03:32:36 2005 +0000

description:
The gawk that comes with Interix is 2.15, which works for most purposes
but can be buggy in some situations (like the bulk build environment).

If pkgsrc gawk happens to be installed, use that; also add lang/gawk to
BULK_PREREQ so it is always used in that case.  If lang/gawk is not
installed, ${AWK} will default to /usr/contrib/bin/gawk as it did before.

diffstat:

 mk/platform/Interix.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 706958ff3cbc -r c988ec90cad4 mk/platform/Interix.mk
--- a/mk/platform/Interix.mk    Sat Mar 19 03:03:56 2005 +0000
+++ b/mk/platform/Interix.mk    Sat Mar 19 03:32:36 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Interix.mk,v 1.25 2005/03/18 18:16:35 tv Exp $
+# $NetBSD: Interix.mk,v 1.26 2005/03/19 03:32:36 tv Exp $
 #
 # Variable definitions for the Interix operating system.
 
@@ -33,11 +33,18 @@
 #   (main lib) 0x48000000
 # zsh          *
 
+BULK_PREREQ+=  lang/gawk
+
 # "catinstall" not yet supported as there's no shipped [gn]roff
 MANINSTALL=    maninstall
 MAKE_FLAGS+=   MKCATPAGES=no NOLINT=1
 
+# Allow for pkgsrc gawk as a newer and less buggy drop-in replacement.
+.if exists(${LOCALBASE}/bin/gawk)
+AWK?=          ${LOCALBASE}/bin/gawk
+.else
 AWK?=          /usr/contrib/bin/gawk
+.endif
 BASENAME?=     /bin/basename
 CAT?=          /bin/cat
 CHMOD?=                /bin/chmod



Home | Main Index | Thread Index | Old Index