source: trunk/dports/devel/openfst/Portfile

Last change on this file was 148125, checked in by mf2k@…, 15 months ago

openfst: Update to version 1.5.2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 148125 2016-04-27 14:45:55Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                openfst
7version             1.5.2
8categories          devel
9maintainers         hum openmaintainer
10
11description         C++ finite-state transducers library
12
13long_description    OpenFst is a library for constructing, combining, \
14                    optimizing, and searching weighted finite-state \
15                    transducers (FSTs).
16
17homepage            http://www.openfst.org/
18platforms           darwin
19license             Apache-2
20
21master_sites        ${homepage}twiki/pub/FST/FstDownload/
22
23checksums           rmd160  39de985c50ade986ad2e39bcf7050dfe9d709683 \
24                    sha256  944b9ae654d62345f51b9c2f728eee2751af32f90caeb35283bb7a5262d19cf2
25
26if {${os.platform} eq "darwin" && ${os.major} < 12} {
27    version         1.3.4
28    checksums       rmd160  5f9c9c059150dd5afb894ea1edc7dd4d7d22a166 \
29                    sha256  e95fa96674e1c9d6866bbf79b9cd755c5121ad165b76224c7c6bbfa139399a61
30    patchfiles      patch-c++11.diff patch-src-include-fst-config.h.in.diff
31    # OpenFst doesn't like Xcode's compiler before Snow Leopard.
32    # See http:/www.openfst.org/twiki/bin/view/FST/CompilingOnMacOSX
33    # TODO: Change this to compiler.blacklist
34    if {${os.major} < 10} {
35        variant gcc43 conflicts gcc44 gcc45 description {Compile with gcc 4.3} {
36            configure.compiler macports-gcc-4.3
37        }
38       
39        variant gcc44 conflicts gcc43 gcc45 description {Compile with gcc 4.4} {
40            configure.compiler macports-gcc-4.4
41        }
42       
43        variant gcc45 conflicts gcc43 gcc44 description {Compile with gcc 4.5} {
44            configure.compiler macports-gcc-4.5
45        }
46       
47        if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45]} {
48            default_variants +gcc45
49        }
50    }
51}
52
53post-destroot {
54    set dest_doc ${destroot}${prefix}/share/doc/${name}
55    xinstall -d ${dest_doc}
56    xinstall -m 644 -W ${worksrcpath} \
57        AUTHORS \
58        COPYING \
59        NEWS \
60        README \
61        ${dest_doc}
62}
63
64livecheck.type      regex
65livecheck.url       ${homepage}twiki/bin/view/FST/FstDownload
66livecheck.regex     ${name}-(\[0-9.\]+)\\.
Note: See TracBrowser for help on using the repository browser.