[102083] trunk/dports/graphics/opencv/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Jan 27 11:06:17 PST 2013


Revision: 102083
          https://trac.macports.org/changeset/102083
Author:   jeremyhu at macports.org
Date:     2013-01-27 11:06:16 -0800 (Sun, 27 Jan 2013)
Log Message:
-----------
opencv: Make port compiler dependency more generic, add a reminder to look into why clang was blacklisted.

Modified Paths:
--------------
    trunk/dports/graphics/opencv/Portfile

Modified: trunk/dports/graphics/opencv/Portfile
===================================================================
--- trunk/dports/graphics/opencv/Portfile	2013-01-27 18:57:00 UTC (rev 102082)
+++ trunk/dports/graphics/opencv/Portfile	2013-01-27 19:06:16 UTC (rev 102083)
@@ -105,12 +105,13 @@
     compiler.blacklist-append   llvm-gcc-4.2
 }
 
+# TODO: WHY? Is there an open ticket/radar?
 compiler.blacklist-append       clang
 
-# GCC-4.2 workaround
-if {${configure.compiler} == "apple-gcc-4.2"} {
-    depends_build-append    port:apple-gcc42
-    depends_skip_archcheck-append apple-gcc42
+# TODO: base should do this: http://trac.macports.org/ticket/32542 
+if {[portconfigure::compiler_is_port ${configure.compiler}]} { 
+    depends_build-append port:$portconfigure::compiler_name_map(${configure.compiler}) 
+    depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler}) 
 }
 
 # PCH broken when universal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130127/f8df9793/attachment.html>


More information about the macports-changes mailing list