summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-10-30 13:53:15 +0000
committeragc <agc@pkgsrc.org>2001-10-30 13:53:15 +0000
commit7167cd3880ee7934078e135a86e67afe430a2db0 (patch)
tree534b8d9299a4f4782688600ae3fcb9a7d2215441 /mk/bsd.prefs.mk
parentf2904106a5a1972dd9ebaa39b26380c818e1216d (diff)
downloadpkgsrc-7167cd3880ee7934078e135a86e67afe430a2db0.tar.gz
Add initial support for Darwin (1.4) to pkgsrc.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk29
1 files changed, 20 insertions, 9 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 49cdc897ac9..e6180bb4aee 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.60 2001/09/21 15:28:35 tron Exp $
+# $NetBSD: bsd.prefs.mk,v 1.61 2001/10/30 13:53:15 agc Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -81,6 +81,13 @@ LOWER_VENDOR?= unknown
. endif
. endif
+.elif ${OPSYS} == "Darwin"
+LOWER_OPSYS?= darwin
+LOWER_ARCH!= ${UNAME} -p
+MACHINE_ARCH= ${LOWER_ARCH}
+MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
+LOWER_VENDOR?= apple
+
.elif !defined(LOWER_OPSYS)
LOWER_OPSYS!= echo ${OPSYS} | tr A-Z a-z
.endif
@@ -287,7 +294,7 @@ SERIAL_DEVICES?= /dev/null
PKG_TOOLS_BIN?= /usr/sbin
.elif (${OPSYS} == "SunOS")
# Migration aid for old /usr/local LOCALBASE on Solaris
-.if !defined(LOCALBASE) && exists(${DESTDIR}/usr/local/libexec/cgi-bin) && \
+. if !defined(LOCALBASE) && exists(${DESTDIR}/usr/local/libexec/cgi-bin) && \
!exists(${DESTDIR}/usr/pkg/libexec/cgi-bin)
.BEGIN:
@echo "On Solaris and /usr/local/libexec/cgi-bin found:"
@@ -296,25 +303,29 @@ PKG_TOOLS_BIN?= /usr/sbin
@echo "- Otherwise set LOCALBASE=/usr/pkg in your environment for the"
@echo " first package install."
@false
-.endif
+. endif
# end of migration aid
LOCALBASE?= ${DESTDIR}/usr/pkg
-.if !defined(ZOULARISBASE)
-. if exists(${LOCALBASE}/bsd)
+. if !defined(ZOULARISBASE)
+. if exists(${LOCALBASE}/bsd)
ZOULARISBASE:= ${LOCALBASE}/bsd
-. else
+. else
ZOULARISBASE:= ${LOCALBASE}
+. endif
. endif
-.endif
PKG_TOOLS_BIN?= ${ZOULARISBASE}/bin
-.if (${X11BASE} == "/usr/openwin")
+. if (${X11BASE} == "/usr/openwin")
HAVE_OPENWINDOWS= YES
-.endif
+. endif
.elif (${OPSYS} == "Linux")
ZOULARISBASE?= ${DESTDIR}/usr/local/bsd
PKG_TOOLS_BIN?= ${ZOULARISBASE}/bin
+
+.elif (${OPSYS} == "Darwin")
+ZOULARISBASE?= ${DESTDIR}/usr/pkg
+PKG_TOOLS_BIN?= ${ZOULARISBASE}/sbin
.endif
LOCALBASE?= ${DESTDIR}/usr/pkg