summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authorschwarz <schwarz>2006-04-10 13:38:36 +0000
committerschwarz <schwarz>2006-04-10 13:38:36 +0000
commit62c25ea2ddc530653188a84e3d75c66f6422c4ec (patch)
treeef1f217c9aee2c490676c6c83338c796182f38ec /mk/platform
parent949639a2388e9e622cfe683cdd0beea8e1aab6ed (diff)
downloadpkgsrc-62c25ea2ddc530653188a84e3d75c66f6422c4ec.tar.gz
Modified xmkmf support for Darwin and IRIX:
- on Darwin, pkgsrc no longer tries to set user or group when installing as unprivileged user, i.e. with UNPRIVILEGED set to yes. - on IRIX (5 and 6) the system's xmkmf config files are no longer modified. Instead copies (that take priority with pkgsrc's xmkmf) are used for that purpose.
Diffstat (limited to 'mk/platform')
-rw-r--r--mk/platform/Darwin.mk5
-rw-r--r--mk/platform/IRIX.mk32
2 files changed, 33 insertions, 4 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index 12c939a5e68..31019fcc2b0 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.17 2006/03/18 21:40:44 jlam Exp $
+# $NetBSD: Darwin.mk,v 1.18 2006/04/10 13:38:36 schwarz Exp $
#
# Variable definitions for the Darwin operating system.
@@ -16,6 +16,9 @@ RSH?= /usr/bin/rsh
SU?= /usr/bin/su
TYPE?= type # Shell builtin
IMAKEOPTS+= -DBuildHtmlManPages=NO
+.if defined(UNPRIVILEGED) && !empty(UNPRIVILEGED:M[Yy][Ee][Ss])
+IMAKEOPTS+= -DInstallFlags=-c # do not set user or group
+.endif
.if !defined(PKGSRC_COMPILER) || !empty(PKGSRC_COMPILER:Mgcc)
CPP_PRECOMP_FLAGS?= -no-cpp-precomp # use the GNU cpp, not the OS X cpp
diff --git a/mk/platform/IRIX.mk b/mk/platform/IRIX.mk
index 8a8d7113322..42bec733e3e 100644
--- a/mk/platform/IRIX.mk
+++ b/mk/platform/IRIX.mk
@@ -1,4 +1,4 @@
-# $NetBSD: IRIX.mk,v 1.22 2006/03/18 21:40:44 jlam Exp $
+# $NetBSD: IRIX.mk,v 1.23 2006/04/10 13:38:36 schwarz Exp $
#
# Variable definitions for the IRIX operating system.
@@ -9,6 +9,14 @@ IMAKE?= /usr/bin/X11/imake # IRIX 5.3 location
IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
IMAKEOPTS+= -DMakeCmd=${PREFIX}/bin/bmake -DProjectRoot=${X11BASE}
IMAKEOPTS+= -DManUsr=${PREFIX}
+.if empty(OS_VERSION:M6*)
+IMAKEOPTS+= -DShLibDir=${X11BASE}/lib
+IMAKEOPTS+= -DOptimizerLevel="${CFLAGS}"
+IMAKEOPTS+= -DManDir=${PREFIX}/${IMAKE_MAN_DIR}
+IMAKEOPTS+= -DLibmanDir=${PREFIX}/${IMAKE_LIBMAN_DIR}
+IMAKEOPTS+= -DFileManDir=${PREFIX}/${IMAKE_FILEMAN_DIR}
+IMAKEOPTS+= -DManPath=${PREFIX}/man
+.endif
PKGLOCALEDIR?= share
PS?= /sbin/ps
RSH?= /usr/bsd/rsh
@@ -30,17 +38,35 @@ ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
ULIMIT_CMD_memorysize?= ulimit -v `ulimit -H -v`
# imake installs manpages in weird places
+.if !empty(OS_VERSION:M6*)
IMAKE_MAN_SOURCE_PATH?= catman/u_man/cat
IMAKE_MAN_SUFFIX?= 1
IMAKE_LIBMAN_SUFFIX?= 3
IMAKE_FILEMAN_SUFFIX?= 5
-IMAKE_GAMEMAN_SUFFIX= 6
+IMAKE_GAMEMAN_SUFFIX?= 6
IMAKE_MAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}1/X11
IMAKE_LIBMAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}3/X11
IMAKE_FILEMAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}5/X11
-IMAKE_GAMEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}6/X11
+IMAKE_GAMEMAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}6/X11
IMAKE_MANNEWSUFFIX?= z
IMAKE_MANINSTALL?= maninstall
+.else
+IMAKE_MAN_SOURCE_PATH?= man/man
+IMAKE_MAN_SUFFIX?= 1.gz
+IMAKE_LIBMAN_SUFFIX?= 3.gz
+IMAKE_FILEMAN_SUFFIX?= 5.gz
+IMAKE_GAMEMAN_SUFFIX?= 6.gz
+IMAKE_MAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}1
+IMAKE_LIBMAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}3
+IMAKE_FILEMAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}5
+IMAKE_GAMEMAN_DIR?= ${IMAKE_MAN_SOURCE_PATH}6
+IMAKE_MANNEWSUFFIX?= ${IMAKE_MAN_SUFFIX}
+. if defined(USE_IMAKE) && !empty(USE_IMAKE:M[Yy][Ee][Ss])
+MAKE_ENV+= GZIP_CMD="${GZIP_CMD}"
+USE_TOOLS+= gzip
+MANCOMPRESSED= yes
+. endif
+.endif
.if exists(/usr/include/netinet6)
_OPSYS_HAS_INET6= yes # IPv6 is standard