[109059] trunk/dports/science/bob/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Wed Aug 7 13:06:55 PDT 2013
Revision: 109059
https://trac.macports.org/changeset/109059
Author: jeremyhu at macports.org
Date: 2013-08-07 13:06:55 -0700 (Wed, 07 Aug 2013)
Log Message:
-----------
bob: Use compiler blacklisting and use macports-gcc-4.7 for ppc
Modified Paths:
--------------
trunk/dports/science/bob/Portfile
Modified: trunk/dports/science/bob/Portfile
===================================================================
--- trunk/dports/science/bob/Portfile 2013-08-07 18:37:39 UTC (rev 109058)
+++ trunk/dports/science/bob/Portfile 2013-08-07 20:06:55 UTC (rev 109059)
@@ -5,6 +5,7 @@
PortGroup cmake 1.0
PortGroup github 1.0
PortGroup active_variants 1.1
+PortGroup compiler_blacklist_versions 1.0
github.setup idiap bob 1.2.0 v
revision 2
@@ -48,13 +49,12 @@
port:libsvm \
port:qt4-mac
-#
-# fix build on SL and earlier
# compiler needs to support C++11 features
-#
-
-if {${os.platform} == "darwin" && ${os.major} < 11} {
- configure.compiler macports-clang-3.1
+if {[lsearch [get_canonical_archs] ppc] != -1 || [lsearch [get_canonical_archs] ppc64] != -1} {
+ # Until llvm better supports darwin/ppc, the only C++11 compiler for ppc is gcc
+ compiler.whitelist macports-gcc-4.7
+} else {
+ compiler.blacklist gcc-4.0 gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2 {clang < 300}
}
configure.args -DCMAKE_BUILD_TYPE=Release -DBOB_VERSION=${version} -DBOB_SOVERSION=${soversion}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130807/ab567f5b/attachment.html>
More information about the macports-changes
mailing list