summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-10-31 22:05:02 +0000
committerwiz <wiz@pkgsrc.org>2004-10-31 22:05:02 +0000
commite8cb326b9f6b8081b8443e5e3890f2d0efa2a90d (patch)
tree2df42d77546c0358546643df33b90e5c908428e2 /mk/bsd.prefs.mk
parent37aaf3046b4d88d003701958e39dd790ff5e2684 (diff)
downloadpkgsrc-e8cb326b9f6b8081b8443e5e3890f2d0efa2a90d.tar.gz
Add DragonFlyBSD support, provided by Todd Willey on tech-pkg.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index dc4f560816f..92b5970b711 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.175 2004/10/20 05:42:55 martti Exp $
+# $NetBSD: bsd.prefs.mk,v 1.176 2004/10/31 22:05:02 wiz Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -97,6 +97,14 @@ LOWER_VENDOR?= pc
LOWER_VENDOR?= unknown
. endif
+.elif ${OPSYS} == "DragonFly"
+LOWER_OPSYS?= dragonfly
+LOWER_ARCH!= ${UNAME} -p
+MACHINE_ARCH= ${LOWER_ARCH}
+MAKEFLAGS+= LOWER_ARCH=${LOWER_ARCH}
+LOWER_OPSYS_VERSUFFIX!= echo ${LOWER_OS_VERSION} | ${CUT} -c -1
+LOWER_VENDOR?= pc
+
.elif ${OPSYS} == "SunOS"
. if ${MACHINE_ARCH} == "sparc"
SPARC_TARGET_ARCH?= sparcv7
@@ -213,6 +221,10 @@ OBJECT_FMT?= a.out
. endif
.endif
+.if ${OPSYS} == "DragonFly"
+OBJECT_FMT= ELF
+.endif
+
# Calculate depth
.if exists(${.CURDIR}/mk/bsd.pkg.mk)
_PKGSRC_TOPDIR= ${.CURDIR}