summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-03-21 14:49:25 +0000
committertv <tv@pkgsrc.org>2005-03-21 14:49:25 +0000
commitde4333b663bd1dc194ebe528b0ad6bcdd604a84f (patch)
tree31941b7a989107342c875f7b315b3296fce0c379 /mk
parentc9a384ec9a14023900fea5660553b2edd47cbaf2 (diff)
downloadpkgsrc-de4333b663bd1dc194ebe528b0ad6bcdd604a84f.tar.gz
Move "GNU replacements" block to the top.
Use gsort from coreutils instead of /bin/sort if coreutils is installed. Install coreutils in BULK_PREREQ to get gsort; /bin/sort can't handle the amazingly long lines produced by the dependency-tree printing script.
Diffstat (limited to 'mk')
-rw-r--r--mk/platform/Interix.mk28
1 files changed, 13 insertions, 15 deletions
diff --git a/mk/platform/Interix.mk b/mk/platform/Interix.mk
index 6a08ffe88e6..3828edad830 100644
--- a/mk/platform/Interix.mk
+++ b/mk/platform/Interix.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Interix.mk,v 1.26 2005/03/19 03:32:36 tv Exp $
+# $NetBSD: Interix.mk,v 1.27 2005/03/21 14:49:25 tv Exp $
#
# Variable definitions for the Interix operating system.
@@ -33,18 +33,24 @@
# (main lib) 0x48000000
# zsh *
-BULK_PREREQ+= lang/gawk
+BULK_PREREQ+= lang/gawk sysutils/coreutils
# "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
+# Use some pkgsrc versions as "better" replacements, if installed
+.if exists(${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}awk)
+AWK?= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}awk
.endif
+.if exists(${LOCALBASE}/bin/gtar)
+GTAR?= ${LOCALBASE}/bin/gtar
+.endif
+.if exists(${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}sort)
+SORT?= ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}sort
+.endif
+
+AWK?= /usr/contrib/bin/gawk
BASENAME?= /bin/basename
CAT?= /bin/cat
CHMOD?= /bin/chmod
@@ -65,11 +71,7 @@ FILE_CMD?= /bin/file
FIND?= /bin/find
GMAKE?= ${LOCALBASE}/bin/gmake
GREP?= /bin/grep
-.if exists(${LOCALBASE}/bin/gtar)
-GTAR?= ${LOCALBASE}/bin/gtar
-.else
GTAR?= ${LOCALBASE}/bin/tar
-.endif
GUNZIP_CMD?= /usr/contrib/bin/gunzip -f
GZCAT?= /usr/contrib/bin/gunzip -c
GZIP?= -9
@@ -89,11 +91,7 @@ MTREE?= ${LOCALBASE}/sbin/mtree
MV?= /bin/mv
NICE?= /bin/nice
PATCH?= ${LOCALBASE}/bin/gpatch
-.if exists(${LOCALBASE}/bin/pax)
PAX?= ${LOCALBASE}/bin/pax
-.else
-PAX?= /bin/pax
-.endif
PERL5?= ${LOCALBASE}/bin/perl
PKGLOCALEDIR?= share
PS?= /bin/ps