summaryrefslogtreecommitdiff
path: root/misc/root
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2014-12-27 00:56:46 +0000
committerdholland <dholland@pkgsrc.org>2014-12-27 00:56:46 +0000
commitd4036ddb1e061006159e4b2a06dc2fd2a298ee72 (patch)
treecfc14994ffb01ab6f3d4a7666ceed5b9213740ab /misc/root
parent95606dca2bda80e4c47f1683f3332ba90f37a18e (diff)
downloadpkgsrc-d4036ddb1e061006159e4b2a06dc2fd2a298ee72.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