[108138] trunk/dports/math/cadabra/Portfile
larryv at macports.org
larryv at macports.org
Sat Jul 13 15:05:13 PDT 2013
Revision: 108138
https://trac.macports.org/changeset/108138
Author: larryv at macports.org
Date: 2013-07-13 15:05:13 -0700 (Sat, 13 Jul 2013)
Log Message:
-----------
cadabra: Add automatic compiler dependency hack.
Modified Paths:
--------------
trunk/dports/math/cadabra/Portfile
Modified: trunk/dports/math/cadabra/Portfile
===================================================================
--- trunk/dports/math/cadabra/Portfile 2013-07-13 18:57:31 UTC (rev 108137)
+++ trunk/dports/math/cadabra/Portfile 2013-07-13 22:05:13 UTC (rev 108138)
@@ -37,6 +37,20 @@
# with malloc failures as a result.
configure.compiler apple-gcc-4.2
+# TODO: Remove when MacPorts 2.2 is released.
+if {[info exists portconfigure::compiler_name_map(${configure.compiler})]} {
+ set compiler $portconfigure::compiler_name_map(${configure.compiler})
+ if {[string first macports-gcc- ${configure.compiler}] == 0} {
+ depends_lib-append port:${compiler} \
+ {path:lib/libstdc\\+\\+.6.dylib:libstdcxx}
+ } else {
+ depends_build-append port:${compiler}
+ }
+ if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
+ depends_skip_archcheck-append ${compiler}
+ }
+}
+
depends_build port:pkgconfig \
port:pcrexx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130713/0f6f191f/attachment.html>
More information about the macports-changes
mailing list