Skip to content
Permalink
Browse files

root6: add macports clang 7.0 support + OpenBLAS dependency.

  • Loading branch information
cjones051073 committed Oct 2, 2018
1 parent 6b84174 commit 1380b7c19d5845445f1f4dee9403d5f9355aa871
Showing with 9 additions and 5 deletions.
  1. +9 −5 science/root6/Portfile
@@ -12,7 +12,7 @@ PortGroup cxx11 1.1

github.setup root-project root 6-14-04 v
version [string map {- .} ${github.version}]
revision 0
revision 1
livecheck.version ${github.version}

# Use git commit
@@ -60,7 +60,8 @@ depends_lib port:expat \
port:gl2ps \
port:tbb \
port:lz4 \
port:vdt
port:vdt \
port:OpenBLAS
# port:freetype

# Not working yet with macOS 10.14
@@ -79,7 +80,7 @@ select.file ${filespath}/${name}
# Force a compatible compiler
compiler.blacklist-append *gcc* {clang < 900} macports-clang-3.3 macports-clang-3.4 \
macports-clang-3.7 macports-clang-4.0 macports-clang-3.9
compiler.whitelist clang macports-clang-6.0 macports-clang-5.0
compiler.whitelist clang macports-clang-7.0 macports-clang-6.0 macports-clang-5.0

# port specific location
set install_prefix ${prefix}/libexec/root${version_major}
@@ -627,7 +628,7 @@ variant x11 conflicts cocoa description {Enables X11 graphical backend} {

# List of possible clang versions that work
# REMEMBER - Update the logic below when changing this list ...
set clang_versions { 5.0 6.0 }
set clang_versions { 5.0 6.0 7.0 }

# Define the available variants
foreach clang_ver ${clang_versions} {
@@ -645,11 +646,14 @@ foreach clang_ver ${clang_versions} {
# make sure that the proper variant is automatically selected
# (ROOT crashes if the compiler it was built with doesn't exist)
if { ![variant_isset clang50] &&
![variant_isset clang60] } {
![variant_isset clang60] &&
![variant_isset clang70] } {
if { ${configure.compiler} eq "macports-clang-5.0" } {
default_variants-append +clang50
} elseif { ${configure.compiler} eq "macports-clang-6.0" } {
default_variants-append +clang60
} elseif { ${configure.compiler} eq "macports-clang-7.0" } {
default_variants-append +clang70
}
}

0 comments on commit 1380b7c

Please sign in to comment.
You can’t perform that action at this time.