[102157] trunk/dports/multimedia/mythtv-core.25/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Jan 28 10:59:08 PST 2013


Revision: 102157
          https://trac.macports.org/changeset/102157
Author:   jeremyhu at macports.org
Date:     2013-01-28 10:59:08 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
mythtv-core.25: Generalize the compiler dependency

Modified Paths:
--------------
    trunk/dports/multimedia/mythtv-core.25/Portfile

Modified: trunk/dports/multimedia/mythtv-core.25/Portfile
===================================================================
--- trunk/dports/multimedia/mythtv-core.25/Portfile	2013-01-28 18:52:11 UTC (rev 102156)
+++ trunk/dports/multimedia/mythtv-core.25/Portfile	2013-01-28 18:59:08 UTC (rev 102157)
@@ -91,11 +91,18 @@
     compiler.blacklist-append clang
 }
 
-# TODO: This should be done by base
-# https://trac.macports.org/ticket/32542
-if {${configure.compiler} == "macports-clang-3.0"} {
-    depends_build-append port:clang-3.0
-    depends_skip_archcheck-append clang-3.0
+# 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})
+
+    # base 2.1.x ignores the argument and just use ${configure.compiler}
+    if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
+        depends_skip_archcheck-append $portconfigure::compiler_name_map(${configure.compiler})
+    }
+
+    if {[string match macports-gcc* ${configure.compiler}]} {
+        depends_lib-append port:$portconfigure::compiler_name_map(${configure.compiler})
+    }
 }
 
 post-extract {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130128/b280cf8e/attachment.html>


More information about the macports-changes mailing list