[78657] trunk/dports/devel/openfst/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon May 16 03:10:15 PDT 2011


Revision: 78657
          http://trac.macports.org/changeset/78657
Author:   ryandesign at macports.org
Date:     2011-05-16 03:10:12 -0700 (Mon, 16 May 2011)
Log Message:
-----------
openfst: before Snow Leopard, use a gcc port

Modified Paths:
--------------
    trunk/dports/devel/openfst/Portfile

Modified: trunk/dports/devel/openfst/Portfile
===================================================================
--- trunk/dports/devel/openfst/Portfile	2011-05-16 09:47:17 UTC (rev 78656)
+++ trunk/dports/devel/openfst/Portfile	2011-05-16 10:10:12 UTC (rev 78657)
@@ -22,6 +22,29 @@
 checksums           sha1    75aa24fe050c295e16aaeb31a216c1d97952c84e \
                     rmd160  a24279f4deb85f79875b237c548f0b600c3a6af8
 
+# OpenFst doesn't like Xcode's compiler before Snow Leopard.
+# See http://www.openfst.org/twiki/bin/view/FST/CompilingOnMacOSX
+if {${os.platform} == "darwin" && ${os.major} < 10} {
+    variant gcc43 conflicts gcc44 gcc45 description {Compile with gcc 4.3} {
+        configure.compiler macports-gcc-4.3
+        depends_lib-append port:gcc43
+    }
+    
+    variant gcc44 conflicts gcc43 gcc45 description {Compile with gcc 4.4} {
+        configure.compiler macports-gcc-4.4
+        depends_lib-append port:gcc44
+    }
+    
+    variant gcc45 conflicts gcc43 gcc44 description {Compile with gcc 4.5} {
+        configure.compiler macports-gcc-4.5
+        depends_lib-append port:gcc45
+    }
+    
+    if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45]} {
+        default_variants +gcc45
+    }
+}
+
 livecheck.type      regex
 livecheck.url       ${homepage}twiki/bin/view/FST/FstDownload
 livecheck.regex     ${name}-(\[0-9.\]+)\\.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110516/d42eec4d/attachment-0001.html>


More information about the macports-changes mailing list