summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-10-19 13:41:34 +0000
committerrillig <rillig@pkgsrc.org>2007-10-19 13:41:34 +0000
commit034b8390a818b7029a370987c5412678a54bb42d (patch)
tree07f18993d0ef18af77c1794c8875b5205b48b2c0 /mk/platform
parent1026094a3a122df81fbd00a0af7a3cfdfd1b3cd8 (diff)
downloadpkgsrc-034b8390a818b7029a370987c5412678a54bb42d.tar.gz
Reverted the last changes, which factored out some definitions that are
usually the same on the supported platforms. The reason for having duplicate code in these files is to make it easier to port pkgsrc to a new platform: You just have to copy one of the existing platform files and edit the values in it. With some values factored out, you would have to look at one more file. Pointed out by agc@.
Diffstat (limited to 'mk/platform')
-rw-r--r--mk/platform/AIX.mk10
-rw-r--r--mk/platform/BSDOS.mk10
-rw-r--r--mk/platform/Darwin.mk10
-rw-r--r--mk/platform/DragonFly.mk12
-rw-r--r--mk/platform/FreeBSD.mk12
-rw-r--r--mk/platform/HPUX.mk17
-rw-r--r--mk/platform/IRIX.mk10
-rw-r--r--mk/platform/Interix.mk9
-rw-r--r--mk/platform/Linux.mk17
-rw-r--r--mk/platform/NetBSD.mk18
-rw-r--r--mk/platform/OSF1.mk12
-rw-r--r--mk/platform/OpenBSD.mk15
-rw-r--r--mk/platform/SunOS.mk15
-rw-r--r--mk/platform/UnixWare.mk9
-rw-r--r--mk/platform/defaults.mk133
15 files changed, 120 insertions, 189 deletions
diff --git a/mk/platform/AIX.mk b/mk/platform/AIX.mk
index af23c00a94d..2d455db4d6c 100644
--- a/mk/platform/AIX.mk
+++ b/mk/platform/AIX.mk
@@ -1,4 +1,4 @@
-# $NetBSD: AIX.mk,v 1.28 2007/10/18 21:52:23 rillig Exp $
+# $NetBSD: AIX.mk,v 1.29 2007/10/19 13:41:34 rillig Exp $
#
# Variable definitions for the AIX operating system.
@@ -16,12 +16,18 @@ STRIP?= ${LOCALBASE}/bin/strip
SU?= /usr/bin/su
TYPE?= type # Shell builtin
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 0022
EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /sbin/nologin
+PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
ROOT_CMD?= ${SU} - root -c
ROOT_USER?= root
ROOT_GROUP?= system
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
# imake installs manpages in weird places
# these values from /usr/X11R6/lib/X11/config/NetBSD.cf
@@ -80,5 +86,3 @@ SERIAL_DEVICES?= /dev/tty0 \
#GAMEMODE= 2555
#GAMEDIRMODE= 0775
#.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/BSDOS.mk b/mk/platform/BSDOS.mk
index 6108617579a..2a893662521 100644
--- a/mk/platform/BSDOS.mk
+++ b/mk/platform/BSDOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: BSDOS.mk,v 1.22 2007/10/18 21:52:23 rillig Exp $
+# $NetBSD: BSDOS.mk,v 1.23 2007/10/19 13:41:34 rillig Exp $
#
# Variable definitions for the BSD/OS operating system.
@@ -17,6 +17,8 @@ SU?= /usr/bin/su
# sh doesn't have built-in type
TYPE?= which
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 0022
.if ${OBJECT_FMT} == "ELF"
EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
.else
@@ -24,9 +26,13 @@ EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
.endif
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /sbin/nologin
+PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
ROOT_CMD?= ${SU} - root -c
ROOT_USER?= root
ROOT_GROUP?= wheel
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
# imake installs manpages in weird places
# XXX: assume NetBSD defaults until somebody determines correct values
@@ -88,5 +94,3 @@ PKG_CREATE_USERGROUP= NO # until it works
#GAMEMODE= 2555
#GAMEDIRMODE= 0775
#.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index 40e8e252abd..4dc966ca065 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.25 2007/10/18 21:52:23 rillig Exp $
+# $NetBSD: Darwin.mk,v 1.26 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the Darwin operating system.
@@ -7,6 +7,7 @@ CPP= ${CC} -E ${CPP_PRECOMP_FLAGS}
.endif
ECHO_N?= ${ECHO} -n
LDD?= /usr/bin/otool -L
+IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
PKGLOCALEDIR?= share
PS?= /bin/ps
# XXX: default from defaults/mk.conf. Verify/correct for this platform
@@ -21,14 +22,19 @@ IMAKEOPTS+= -DInstallFlags=-c # do not set user or group
.if !defined(PKGSRC_COMPILER) || !empty(PKGSRC_COMPILER:Mgcc)
CPP_PRECOMP_FLAGS?= -no-cpp-precomp # use the GNU cpp, not the OS X cpp
.endif
+DEF_UMASK?= 0022
DEFAULT_SERIAL_DEVICE?= /dev/null
EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /usr/bin/false
+PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
ROOT_CMD?= /usr/bin/sudo ${SH} -c
ROOT_GROUP?= wheel
ROOT_USER?= root
SERIAL_DEVICES?= /dev/null
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
GROUPADD?= ${LOCALBASE}/sbin/groupadd
USERADD?= ${LOCALBASE}/sbin/useradd
@@ -100,5 +106,3 @@ CONFIGURE_ENV+= ac_cv_func_poll=no
#GAMEMODE= 2555
#GAMEDIRMODE= 0775
#.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/DragonFly.mk b/mk/platform/DragonFly.mk
index 07d94760aa8..a02c278d4d8 100644
--- a/mk/platform/DragonFly.mk
+++ b/mk/platform/DragonFly.mk
@@ -1,20 +1,28 @@
-# $NetBSD: DragonFly.mk,v 1.33 2007/10/18 21:52:23 rillig Exp $
+# $NetBSD: DragonFly.mk,v 1.34 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the DragonFly operating system.
ECHO_N?= ${ECHO} -n
+IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
IMAKEOPTS+= -DBuildHtmlManPages=NO
+PKGLOCALEDIR?= share
PS?= /bin/ps
PW?= /usr/sbin/pw
SU?= /usr/bin/su
TYPE?= type # Shell builtin
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 0022
EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /sbin/nologin
+PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
ROOT_CMD?= ${SU} - root -c
ROOT_USER?= root
ROOT_GROUP?= wheel
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
# DragonFly does not provide an X11, so default to modular X.org
X11_TYPE?= modular
@@ -84,5 +92,3 @@ GAMEGRP= games
GAMEMODE= 2555
GAMEDIRMODE= 0775
.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/FreeBSD.mk b/mk/platform/FreeBSD.mk
index aed07b2805a..0948d8bdba5 100644
--- a/mk/platform/FreeBSD.mk
+++ b/mk/platform/FreeBSD.mk
@@ -1,15 +1,19 @@
-# $NetBSD: FreeBSD.mk,v 1.22 2007/10/18 21:52:23 rillig Exp $
+# $NetBSD: FreeBSD.mk,v 1.23 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the FreeBSD operating system.
BRANDELF?= /usr/bin/brandelf # used by linux compat layer
ECHO_N?= ${ECHO} -n
+IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
IMAKEOPTS+= -DBuildHtmlManPages=NO
+PKGLOCALEDIR?= share
PS?= /bin/ps
PW?= /usr/sbin/pw
SU?= /usr/bin/su
TYPE?= type # Shell builtin
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 0022
.if ${OBJECT_FMT} == "ELF"
EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
.else
@@ -17,9 +21,13 @@ EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
.endif
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /sbin/nologin
+PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
ROOT_CMD?= ${SU} - root -c
ROOT_USER?= root
ROOT_GROUP?= wheel
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
# imake installs manpages in weird places
IMAKE_MAN_SOURCE_PATH= man/man
@@ -86,5 +94,3 @@ GAMEGRP= games
GAMEMODE= 2555
GAMEDIRMODE= 0775
.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/HPUX.mk b/mk/platform/HPUX.mk
index c0e8754d7d1..e02c573a2f9 100644
--- a/mk/platform/HPUX.mk
+++ b/mk/platform/HPUX.mk
@@ -1,9 +1,11 @@
-# $NetBSD: HPUX.mk,v 1.9 2007/10/18 21:52:23 rillig Exp $
+# $NetBSD: HPUX.mk,v 1.10 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the HP-UX operating system.
CPP?= /opt/langtools/lbin/cpp
ECHO_N?= /usr/bin/printf # echo doesn't understand -n
+IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
+PKGLOCALEDIR= share
PS?= /bin/ps
SU?= /usr/bin/su
TYPE?= type # Shell builtin
@@ -11,14 +13,19 @@ TYPE?= type # Shell builtin
USERADD?= /usr/sbin/useradd
GROUPADD?= /usr/sbin/groupadd
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 0022
EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /etc/nologin
+PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
ROOT_CMD?= ${SU} - root -c
ROOT_USER?= root
ROOT_GROUP?= sys
TOUCH_FLAGS?= # touch doesn't understand -f
-
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
# imake installs manpages in weird places
# these values from /usr/X11R6/lib/X11/config/NetBSD.cf
IMAKE_MAN_SOURCE_PATH= man/cat
@@ -71,7 +78,5 @@ KRB5_DEFAULT?= mit-krb5
PREFER.openssl?= pkgsrc
PREFER.zlib?= pkgsrc
-_STRIPFLAG_CC?= # none; XXX: why?
-_STRIPFLAG_INSTALL?= # none; XXX: why?
-
-.include "${.PARSEDIR}/defaults.mk"
+_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U} # cc(1) option to strip
+_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U} # install(1) option to strip
diff --git a/mk/platform/IRIX.mk b/mk/platform/IRIX.mk
index bf5e4ac4b58..bd6b690f1a4 100644
--- a/mk/platform/IRIX.mk
+++ b/mk/platform/IRIX.mk
@@ -1,8 +1,9 @@
-# $NetBSD: IRIX.mk,v 1.31 2007/10/18 21:52:24 rillig Exp $
+# $NetBSD: IRIX.mk,v 1.32 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the IRIX operating system.
ECHO_N?= ${ECHO} -n
+IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
IMAKEOPTS+= -DMakeCmd=${PREFIX}/bin/bmake -DProjectRoot=${X11BASE}
IMAKEOPTS+= -DManUsr=${PREFIX}
.if empty(OS_VERSION:M6*)
@@ -10,10 +11,13 @@ IMAKEOPTS+= -DShLibDir=${X11BASE}/lib
IMAKEOPTS+= -DOptimizerLevel="${CFLAGS}"
IMAKEOPTS+= -DManPath=${PREFIX}/man
.endif
+PKGLOCALEDIR?= share
PS?= /sbin/ps
SU?= /sbin/su
TYPE?= /sbin/type
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 022
DEFAULT_SERIAL_DEVICE?= /dev/null
EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
@@ -22,6 +26,8 @@ ROOT_CMD?= ${SU} - root -c
ROOT_GROUP?= sys
ROOT_USER?= root
SERIAL_DEVICES?= /dev/null
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
ULIMIT_CMD_memorysize?= ulimit -v `ulimit -H -v`
# imake installs manpages in weird places
@@ -115,5 +121,3 @@ _OPSYS_MAX_CMDLEN_CMD= /usr/sbin/sysconf ARG_MAX
#GAMEMODE= 2555
#GAMEDIRMODE= 0775
#.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/Interix.mk b/mk/platform/Interix.mk
index afa54db19fb..05e134fcb3e 100644
--- a/mk/platform/Interix.mk
+++ b/mk/platform/Interix.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Interix.mk,v 1.53 2007/10/18 21:52:24 rillig Exp $
+# $NetBSD: Interix.mk,v 1.54 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the Interix operating system.
@@ -79,7 +79,9 @@ USE_BULK_TIMESTAMPS?= no
###
ECHO_N?= /bin/printf %s # does not support "echo -n"
+IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
IMAKEOPTS+= -DBuildHtmlManPages=NO
+PKGLOCALEDIR?= share
PS?= /bin/ps
SU?= /bin/su
TYPE?= type # Shell builtin
@@ -89,6 +91,7 @@ GROUPADD?= ${LOCALBASE}/sbin/groupadd
_PKG_USER_HOME?= # empty by default
_USER_DEPENDS= user>=20040426:../../sysutils/user_interix
+CPP_PRECOMP_FLAGS?= # unset
CONFIG_RPATH_OVERRIDE?= config.rpath */config.rpath */*/config.rpath
DEF_UMASK?= 002
EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
@@ -102,6 +105,8 @@ ROOT_CMD?= ${SU} - "$$(id -un ${ROOT_USER})" -c
ROOT_USER?= ${BINOWN}
ROOT_GROUP?= 131616 # +Administrators or native language equivalent
TOUCH_FLAGS?=
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
ULIMIT_CMD_memorysize?= ulimit -v `ulimit -H -v`
# imake installs manpages in weird places
@@ -175,5 +180,3 @@ _OPSYS_MAX_CMDLEN_CMD= ${ECHO} 262144
#GAMEMODE= 2555
#GAMEDIRMODE= 0775
#.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/Linux.mk b/mk/platform/Linux.mk
index fd15e35de21..d6236fa7e86 100644
--- a/mk/platform/Linux.mk
+++ b/mk/platform/Linux.mk
@@ -1,29 +1,32 @@
-# $NetBSD: Linux.mk,v 1.30 2007/10/18 21:52:24 rillig Exp $
+# $NetBSD: Linux.mk,v 1.31 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the Linux operating system.
ECHO_N?= ${ECHO} -n
-
-# imake on Linux generates Makefiles that can only be understood by
-# GNU make.
-IMAKE_MAKE?= ${GMAKE}
-
+IMAKE_MAKE?= ${GMAKE} # program which gets invoked by imake
IMAKEOPTS+= -DBuildHtmlManPages=NO
+PKGLOCALEDIR?= share
PS?= /bin/ps
# XXX: default from defaults/mk.conf. Verify/correct for this platform
# and remove this comment.
SU?= /bin/su
TYPE?= type # Shell builtin
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 022
DEFAULT_SERIAL_DEVICE?= /dev/null
EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
GROUPADD?= /usr/sbin/groupadd
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /bin/false
+PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
ROOT_CMD?= ${SU} - root -c
ROOT_GROUP?= root
ROOT_USER?= root
SERIAL_DEVICES?= /dev/null
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
USERADD?= /usr/sbin/useradd
# imake installs manpages in weird places
@@ -92,5 +95,3 @@ _STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
ABI?= 64
LIBABISUFFIX?= 64
.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk
index 80d98bb1254..33539d343e3 100644
--- a/mk/platform/NetBSD.mk
+++ b/mk/platform/NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.26 2007/10/18 21:52:24 rillig Exp $
+# $NetBSD: NetBSD.mk,v 1.27 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -7,6 +7,8 @@
CPP= /usr/bin/cpp
.endif
ECHO_N?= ${ECHO} -n
+IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
+PKGLOCALEDIR?= share
PS?= /bin/ps
SU?= /usr/bin/su
TYPE?= type # Shell builtin
@@ -20,6 +22,8 @@ GROUPADD?= ${LOCALBASE}/sbin/groupadd
_USER_DEPENDS= user>=20000313:../../sysutils/user
.endif
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 0022
.if ${OBJECT_FMT} == "ELF"
EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
.else
@@ -27,12 +31,17 @@ EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
.endif
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /sbin/nologin
-.if !exists(${LOCALBASE}/sbin/pkg_info) && exists(/usr/sbin/pkg_info)
+.if exists(${LOCALBASE}/sbin/pkg_info)
+PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
+.else
PKG_TOOLS_BIN?= /usr/sbin
.endif
ROOT_CMD?= ${SU} - root -c
ROOT_USER?= root
ROOT_GROUP?= wheel
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
# imake installs manpages in weird places
# these values from /usr/X11R6/lib/X11/config/NetBSD.cf
@@ -92,6 +101,9 @@ _OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
LINK_ALL_LIBGCC_HACK= -Wl,--whole-archive -lgcc -Wl,--no-whole-archive
.endif
+_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
+_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
+
.if (${MACHINE_ARCH} == alpha)
DEFAULT_SERIAL_DEVICE?= /dev/ttyC0
SERIAL_DEVICES?= /dev/ttyC0 \
@@ -144,5 +156,3 @@ GAMEGRP= games
GAMEMODE= 2555
GAMEDIRMODE= 0775
.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/OSF1.mk b/mk/platform/OSF1.mk
index 39c75373756..6121e3a8e39 100644
--- a/mk/platform/OSF1.mk
+++ b/mk/platform/OSF1.mk
@@ -1,4 +1,4 @@
-# $NetBSD: OSF1.mk,v 1.20 2007/10/18 21:52:24 rillig Exp $
+# $NetBSD: OSF1.mk,v 1.21 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the OSF1 operating system.
@@ -11,6 +11,8 @@
CPP?= /usr/bin/cpp
ECHO_N?= ${SETENV} CMD_ENV=bsd /usr/bin/echo -n
+IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
+PKGLOCALEDIR= share
PS?= /bin/ps
STRIP?= /usr/bin/strip
SU?= /usr/bin/su
@@ -19,12 +21,18 @@ TYPE?= type # Shell builtin
USERADD?= /usr/sbin/useradd
GROUPADD?= /usr/sbin/groupadd
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 0022
EXPORT_SYMBOLS_LDFLAGS?=-Wl,-non_hidden # add symbols to the dynamic symbol table
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /etc/nologin
+PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
ROOT_CMD?= ${SU} - root -c
ROOT_USER?= root
ROOT_GROUP?= system
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
# imake installs manpages in weird places
# these values from /usr/X11R6/lib/X11/config/NetBSD.cf
IMAKE_MAN_SOURCE_PATH= man/cat
@@ -68,5 +76,3 @@ _INCOMPAT_ICONV= OSF1-*-*
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U} # install(1) option to strip
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/OpenBSD.mk b/mk/platform/OpenBSD.mk
index 3b951741458..9589b599bb5 100644
--- a/mk/platform/OpenBSD.mk
+++ b/mk/platform/OpenBSD.mk
@@ -1,8 +1,10 @@
-# $NetBSD: OpenBSD.mk,v 1.26 2007/10/18 21:52:24 rillig Exp $
+# $NetBSD: OpenBSD.mk,v 1.27 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the OpenBSD operating system.
ECHO_N?= ${ECHO} -n
+IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
+PKGLOCALEDIR?= share
PS?= /bin/ps
# XXX: default from defaults/mk.conf. Verify/correct for this platform
# and remove this comment.
@@ -14,6 +16,8 @@ USERADD?= /usr/sbin/useradd
GROUPADD?= /usr/sbin/groupadd
.endif
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 0022
.if ${OBJECT_FMT} == "ELF"
EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
.else
@@ -21,9 +25,13 @@ EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
.endif
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /sbin/nologin
+PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
ROOT_CMD?= ${SU} - root -c
ROOT_USER?= root
ROOT_GROUP?= wheel
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
# imake installs manpages in weird places
# these values from /usr/X11R6/lib/X11/config/OpenBSD.cf
@@ -63,6 +71,9 @@ _USE_RPATH= yes # add rpath to LDFLAGS
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
+_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
+_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
+
.if (${MACHINE_ARCH} == alpha)
DEFAULT_SERIAL_DEVICE?= /dev/ttyC0
SERIAL_DEVICES?= /dev/ttyC0 \
@@ -99,5 +110,3 @@ _OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
#GAMEMODE= 2555
#GAMEDIRMODE= 0775
#.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/SunOS.mk b/mk/platform/SunOS.mk
index 9071068dbad..f84e6f8eaec 100644
--- a/mk/platform/SunOS.mk
+++ b/mk/platform/SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.mk,v 1.31 2007/10/18 21:52:24 rillig Exp $
+# $NetBSD: SunOS.mk,v 1.32 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -11,22 +11,20 @@ PS?= /bin/ps
SU?= /usr/bin/su
TYPE?= /usr/bin/type
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 022
DEFAULT_SERIAL_DEVICE?= /dev/null
EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
GROUPADD?= /usr/sbin/groupadd
MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
+NOLOGIN?= ${FALSE}
ROOT_CMD?= ${SU} - root -c
ROOT_GROUP?= root
ROOT_USER?= root
SERIAL_DEVICES?= /dev/null
-
-# `ulimit' cannot parse localized messages of "unlimited", so force the
-# language to be "C".
-#
ULIMIT_CMD_datasize?= ulimit -d `${SETENV} LC_MESSAGES=C ulimit -H -d`
ULIMIT_CMD_stacksize?= ulimit -s `${SETENV} LC_MESSAGES=C ulimit -H -s`
ULIMIT_CMD_memorysize?= ulimit -v `${SETENV} LC_MESSAGES=C ulimit -H -v`
-
USERADD?= /usr/sbin/useradd
# imake installs manpages in weird places
@@ -80,6 +78,9 @@ _OPSYS_NO_WHOLE_ARCHIVE_FLAG= -z defaultextract
# incompatible.
_INCOMPAT_ICONV= SunOS-*-*
+_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
+_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
+
PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
# check for maximum command line length and set it in configure's environment,
@@ -98,5 +99,3 @@ PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
#GAMEMODE= 2555
#GAMEDIRMODE= 0775
#.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/UnixWare.mk b/mk/platform/UnixWare.mk
index d604401703b..fb6433ab720 100644
--- a/mk/platform/UnixWare.mk
+++ b/mk/platform/UnixWare.mk
@@ -1,4 +1,4 @@
-# $NetBSD: UnixWare.mk,v 1.25 2007/10/18 21:52:24 rillig Exp $
+# $NetBSD: UnixWare.mk,v 1.26 2007/10/19 13:41:35 rillig Exp $
#
# Variable definitions for the UnixWare 7 operating system.
@@ -11,14 +11,19 @@ PS?= /usr/bin/ps
SU?= /usr/bin/su
TYPE?= /usr/bin/type
+CPP_PRECOMP_FLAGS?= # unset
+DEF_UMASK?= 022
DEFAULT_SERIAL_DEVICE?= /dev/null
EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
GROUPADD?= /usr/sbin/groupadd
MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
+NOLOGIN?= ${FALSE}
ROOT_CMD?= ${SU} - root -c
ROOT_GROUP?= root
ROOT_USER?= root
SERIAL_DEVICES?= /dev/null
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
ULIMIT_CMD_memorysize?= ulimit -v `ulimit -H -v`
USERADD?= /usr/sbin/useradd
@@ -87,5 +92,3 @@ PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
#GAMEMODE= 2555
#GAMEDIRMODE= 0775
#.endif
-
-.include "${.PARSEDIR}/defaults.mk"
diff --git a/mk/platform/defaults.mk b/mk/platform/defaults.mk
deleted file mode 100644
index 07c37957660..00000000000
--- a/mk/platform/defaults.mk
+++ /dev/null
@@ -1,133 +0,0 @@
-# $NetBSD: defaults.mk,v 1.1 2007/10/18 21:52:24 rillig Exp $
-#
-# This file contains the default values for variables that depend on the
-# base system. It should be included from mk/platform/${OPSYS}.mk after
-# setting the values that differ from the ones mentioned here.
-#
-
-_VARGROUPS+= platform
-_SYS_VARS.platform= PKGLOCALEDIR CPP_PRECOMP_FLAGS DEF_UMASK \
- NOLOGIN PKG_TOOLS_BIN IMAKE_MAKE
-
-# On some systems, locale files are in lib/locale, on other systems they
-# are in share/locale. The latter is more popular.
-#
-# Keywords: locale
-#
-PKGLOCALEDIR?= share
-
-# XXX: why aren't these in tools/${OPSYS}.mk?
-#CPP
-#ECHO_N
-#IMAKE_MAKE
-#PS
-#SU
-#TYPE
-#USERADD
-#GROUPADD
-
-# XXX: Is this variable really necessary? It should be possible to
-# embed these flags into CPP for Darwin.
-CPP_PRECOMP_FLAGS?= # none
-
-# A sensible value for umask. This is only used in the install phase for
-# emitting a warning, since some packages install their files using cp(1).
-#
-# Keywords: umask
-#
-DEF_UMASK?= 0022
-
-#EXPORT_SYMBOLS_LDFLAGS
-#MOTIF_TYPE_DEFAULT
-
-# The program that is run when a user manages to login to an account that
-# has not been intended for interactive use. If your operating system
-# provides a special command for this purpose, you can use that.
-#
-# XXX: Shouldn't this always be an absolute path?
-#
-NOLOGIN?= ${FALSE}
-
-# The directory where the tools for managing binary packages can be
-# found.
-#
-PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-
-#ROOT_CMD?= ${SU} - root -c
-#ROOT_USER?= root
-#ROOT_GROUP?= wheel
-
-# Some packages need more resources than usual for building.
-#
-# See also: UNLIMIT_RESOURCES
-#
-ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
-
-# The Makefiles generated by imake are so simple that it usually doesn't
-# matter which make(1) utility is used for them. So we just take our
-# bmake as default.
-#
-IMAKE_MAKE?= ${MAKE}
-
-# TODO: Describe the other imake things.
-#
-# Keywords: imake
-#
-#IMAKE_MAN_SOURCE_PATH= man/cat
-#IMAKE_MANNEWSUFFIX= 0
-#IMAKE_MAN_SUFFIX= 1
-#IMAKE_LIBMAN_SUFFIX= 3
-#IMAKE_KERNMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-#IMAKE_FILEMAN_SUFFIX= 5
-#IMAKE_GAMEMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-#IMAKE_MISCMAN_SUFFIX= ${IMAKE_MANNEWSUFFIX}
-#IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
-#IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
-#IMAKE_KERNMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4
-#IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
-#IMAKE_GAMEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}6
-#IMAKE_MISCMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}7
-#IMAKE_MANINSTALL?= maninstall catinstall
-
-# Some operating systems provide emulation for binaries of other
-# operating systems. See mk/emulator/README for more details.
-#
-#_OPSYS_EMULDIR.*
-
-#_OPSYS_HAS_INET6
-#_OPSYS_HAS_JAVA= no # Java is not standard
-#_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
-#_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
-#_OPSYS_PERL_REQD= # no base version of perl required
-#_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
-#_OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type
-#_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
-#_PATCH_BACKUP_ARG?= -V simple -b # switch to patch(1) for backup suffix
-#_USE_RPATH= yes # add rpath to LDFLAGS
-
-# flags passed to the linker to extract all symbols from static archives.
-# this is GNU ld.
-#_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
-#_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
-
-# The option to the C compiler for stripping.
-# XXX: Is this also used for the other compilers?
-# XXX: This should be the plain option and not depend on _INSTALL_UNSTRIPPED.
-#
-_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s}
-
-# The install(1) option to strip the installed files.
-# XXX: This should be the plain option and not depend on _INSTALL_UNSTRIPPED.
-#
-_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
-
-#DEFAULT_SERIAL_DEVICE
-#SERIAL_DEVICES
-
-#PKG_HAVE_KQUEUE
-
-# check for maximum command line length and set it in configure's environment,
-# to avoid a test required by the libtool script that takes forever.
-#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax