summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authortv <tv>2005-11-01 16:01:16 +0000
committertv <tv>2005-11-01 16:01:16 +0000
commit1f1bd068f6807db023f6271fd0ce3435995b9b8e (patch)
tree246fb6cbbfabd71a5b9dc7921690dbb271d6c18b /mk/platform
parent1f595ea9e9738422c42b2ada8d730f936536482b (diff)
downloadpkgsrc-1f1bd068f6807db023f6271fd0ce3435995b9b8e.tar.gz
Add some extra default overrides for Interix, to:
- speed up the build (avoiding a few != settings that are inferrable instead) - reduce the number of settings that the user needs to have in mk.conf
Diffstat (limited to 'mk/platform')
-rw-r--r--mk/platform/Interix.mk45
1 files changed, 44 insertions, 1 deletions
diff --git a/mk/platform/Interix.mk b/mk/platform/Interix.mk
index d3f26eac6a0..b4e46295dcb 100644
--- a/mk/platform/Interix.mk
+++ b/mk/platform/Interix.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Interix.mk,v 1.42 2005/10/31 19:07:18 tv Exp $
+# $NetBSD: Interix.mk,v 1.43 2005/11/01 16:01:16 tv Exp $
#
# Variable definitions for the Interix operating system.
@@ -33,10 +33,53 @@
# (main lib) 0x48000000
# zsh *
+###
+### Overrides to standard BSD .mk files
+###
+
# "catinstall" not yet supported as there's no shipped [gn]roff
MANINSTALL= maninstall
MAKE_FLAGS+= MKCATPAGES=no NOLINT=1
+###
+### Alternate defaults to global pkgsrc settings, to help avoid
+### some of the excessive Interix fork(2) overhead, and reduce the
+### amount of settings required in the user's mk.conf
+###
+
+# NetBSD's faster, vfork-capable shell (not yet in pkgsrc)
+#BULK_PREREQ+= shells/nbsh
+.if exists(${PREFIX}/bin/nbsh)
+TOOLS_SHELL?= ${PREFIX}/bin/nbsh
+WRAPPER_SHELL?= ${PREFIX}/bin/nbsh
+.endif
+
+INSTALL?= ${PREFIX}/bin/install-sh
+PAX?= ${PREFIX}/bin/pax
+SED?= ${PREFIX}/bin/nbsed
+
+.if exists(/usr/lib/libc.so.3.5)
+OS_VERSION?= 3.5
+.elif exists(/usr/lib/libc.so.3.1)
+OS_VERSION?= 3.1
+.else
+OS_VERSION?= 3.0
+.endif
+LOWER_OS_VERSION?= ${OS_VERSION}
+
+GCC_USE_SYMLINKS?= yes
+WRAPPER_DEBUG?= no
+
+.if defined(BATCH)
+BULK_PREREQ+= lang/perl5
+USE_BULK_BROKEN_CHECK?= no
+USE_BULK_TIMESTAMPS?= no
+.endif
+
+###
+### Platform definitions common to pkgsrc/mk/platform/*.mk
+###
+
ECHO_N?= /bin/printf %s # does not support "echo -n"
IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
IMAKEOPTS+= -DBuildHtmlManPages=NO