[102260] trunk/dports/graphics/dcmtk/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Jan 29 09:33:51 PST 2013


Revision: 102260
          https://trac.macports.org/changeset/102260
Author:   jeremyhu at macports.org
Date:     2013-01-29 09:33:51 -0800 (Tue, 29 Jan 2013)
Log Message:
-----------
dcmtk: Use compiler.blacklist

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

Modified: trunk/dports/graphics/dcmtk/Portfile
===================================================================
--- trunk/dports/graphics/dcmtk/Portfile	2013-01-29 17:06:52 UTC (rev 102259)
+++ trunk/dports/graphics/dcmtk/Portfile	2013-01-29 17:33:51 UTC (rev 102260)
@@ -2,6 +2,8 @@
 
 PortSystem              1.0
 PortGroup               muniversal 1.0
+PortGroup               compiler_blacklist_versions 1.0
+
 name                    dcmtk
 version                 3.6.0
 revision                2
@@ -75,8 +77,21 @@
 
 use_parallel_build      no
 
-if {${configure.compiler} == "clang"} {
-   configure.compiler      llvm-gcc-4.2
+# TODO: This project has buggy C++ which clang rejects
+compiler.blacklist-append clang
+
+# TODO: base should do this: http://trac.macports.org/ticket/32542
+if {[info exists portconfigure::compiler_name_map(${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})
+    }
 }
 
 variant private description "Install private tags dictionary" {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130129/d7ff839c/attachment.html>


More information about the macports-changes mailing list