[102134] trunk/dports/gis/cgal/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Mon Jan 28 01:04:34 PST 2013
Revision: 102134
https://trac.macports.org/changeset/102134
Author: jeremyhu at macports.org
Date: 2013-01-28 01:04:34 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
cgal: Use compiler.blacklist
Modified Paths:
--------------
trunk/dports/gis/cgal/Portfile
Modified: trunk/dports/gis/cgal/Portfile
===================================================================
--- trunk/dports/gis/cgal/Portfile 2013-01-28 08:49:25 UTC (rev 102133)
+++ trunk/dports/gis/cgal/Portfile 2013-01-28 09:04:34 UTC (rev 102134)
@@ -51,14 +51,13 @@
-DWITH_ZLIB:BOOL=ON
# gcc 4.0 is too old to compile CGAL properly; see <http://www.cgal.org/FAQ.html#mac_optimization_bug>
+compiler.blacklist-append gcc-4.0
-if {${configure.compiler} == "gcc-4.0"} {
- configure.compiler gcc-4.2
- if {![file executable ${configure.cc}]} {
- depends_build-append port:apple-gcc42
- configure.compiler apple-gcc-4.2
- }
-}
+# 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})
+}
variant demos description {Create demos} requires qt4 {
depends_lib-append port:libQGLViewer \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130128/734a12f0/attachment.html>
More information about the macports-changes
mailing list