summaryrefslogtreecommitdiff
path: root/misc/root
diff options
context:
space:
mode:
authordholland <dholland>2014-12-27 00:56:46 +0000
committerdholland <dholland>2014-12-27 00:56:46 +0000
commit34404ded8b28ff7ccf0651dc3a0609fe6bfd0861 (patch)
treecfc14994ffb01ab6f3d4a7666ceed5b9213740ab /misc/root
parent93d1a7ee137ae170ee6a8ebfdfaa205940f066f6 (diff)
downloadpkgsrc-34404ded8b28ff7ccf0651dc3a0609fe6bfd0861.tar.gz
If LOWER_OPSYS is "darwin", don't pass this as the OS type as this
package unsurprisingly has no idea what a "darwin" is. Instead use "netbsd" in the hopes that the netbsd config is adequate for all pkgsrc use. (If this doesn't work, try "macosx".) I'm going to continue passing the contents of LOWER_OPSYS everywhere else, because there's some chance it might actually be working as is and we're in a freeze. Might fix PR 37513.
Diffstat (limited to 'misc/root')
-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