[102274] trunk/dports/graphics/exact-image/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Jan 29 15:42:04 PST 2013


Revision: 102274
          https://trac.macports.org/changeset/102274
Author:   jeremyhu at macports.org
Date:     2013-01-29 15:42:03 -0800 (Tue, 29 Jan 2013)
Log Message:
-----------
exact-image: Use compiler.blacklist with our workaround dependency block

Modified Paths:
--------------
    trunk/dports/graphics/exact-image/Portfile

Modified: trunk/dports/graphics/exact-image/Portfile
===================================================================
--- trunk/dports/graphics/exact-image/Portfile	2013-01-29 23:38:49 UTC (rev 102273)
+++ trunk/dports/graphics/exact-image/Portfile	2013-01-29 23:42:03 UTC (rev 102274)
@@ -30,14 +30,28 @@
                     port:openexr \
                     port:lcms
 
-platform darwin 9 {
-    # Undefined symbols: "BarDecode::code25i_t::tol", referenced from: __ZN9BarDecode9code25i_t3tolE$non_lazy_ptr in bardecode.o
-    configure.compiler gcc-4.2
-}
+# Undefined symbols: "BarDecode::code25i_t::tol", referenced from: __ZN9BarDecode9code25i_t3tolE$non_lazy_ptr in bardecode.o
+compiler.blacklist-append gcc-4.0
 
+# TODO: This project has buggy C++ which clang rejects
 # error: variable length array of non-POD element type
-compiler.blacklist  clang
+# http://trac.macports.org/ticket/34201
+compiler.blacklist-append  clang macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2
 
+# 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})
+    }
+}
+
 patchfiles          codecs_png.cc.diff
 
 configure.args      --with-freetype \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130129/a792e011/attachment.html>


More information about the macports-changes mailing list