summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/root/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/misc/root/Makefile b/misc/root/Makefile
index bf97ae041f4..165b94073e9 100644
--- a/misc/root/Makefile
+++ b/misc/root/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.55 2014/05/31 15:56:27 wiz Exp $
+# $NetBSD: Makefile,v 1.56 2014/12/27 00:56:46 dholland Exp $
DISTNAME= root_v5.26.00b.source
PKGNAME= root-5.26
@@ -18,14 +18,23 @@ USE_LANGUAGES= c c++ #fortran f2c lacks LOC()
CHECK_PORTABILITY_SKIP= build/win/*.sh cint/tool/INSTALLBIN
BUILD_TARGET=
+.include "../../mk/bsd.prefs.mk"
+
.if (${MACHINE_ARCH} == "arm")
BROKEN= Compilation stops due to internal compiler error
.endif
+ROOT_OPSYS= ${LOWER_OPSYS}
+.if ${ROOT_OPSYS} == "darwin"
+# MacOS. Use the pkgsrc config ("netbsd") - if this doesn't work,
+# try using "macosx".
+ROOT_OPSYS= netbsd
+.endif
+
INSTALLATION_DIRS= bin
HAS_CONFIGURE= yes
-CONFIGURE_ARGS+= ${LOWER_OPSYS}
+CONFIGURE_ARGS+= ${ROOT_OPSYS}
CONFIGURE_ARGS+= --prefix=${PREFIX} --mandir=${PREFIX}/${PKGMANDIR}/man1
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} X11BASE=${X11BASE}
CONFIGURE_ARGS+= --enable-soversion