source: trunk/dports/textproc/giza-pp/Portfile

Last change on this file was 141230, checked in by jeremyhu@…, 22 months ago

giza-pp: Force libstdc++ rather than blacklisting clang

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 141230 2015-10-13 06:31:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                giza-pp
7version             1.0.7
8epoch               1
9categories          textproc
10maintainers         hum openmaintainer
11
12description         a statistical machine translation toolkit
13long_description    GIZA++ is a statistical machine translation toolkit that is \
14                    used to train IBM Models 1-5 and an HMM word alignment model. \
15                    This package also contains the source for the mkcls tool \
16                    which generates the word classes necessary for training some \
17                    of the alignment models.
18
19homepage            http://code.google.com/p/giza-pp/
20platforms           darwin
21license             GPL-2
22
23installs_libs       no
24
25master_sites        googlecode
26checksums           rmd160  aa1a7b9e5cc5c9bb56250b8a8707ed150d56b078 \
27                    sha256  302b45d6ca22bc0a1495a2b09dcc9cc965815e1e3d56c78d053c8743d96369f0
28
29conflicts           mgizapp
30
31distname            ${name}-v${version}
32worksrcdir          ${name}
33
34use_configure       no
35
36variant universal {}
37
38# tr1 namespacing
39# This is a standalone app that just uses the STL, so just use libstdc++
40configure.cxx_stdlib libstdc++
41
42build.args          CXX=${configure.cxx} CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"
43
44destroot {
45    foreach exe {GIZA++ snt2plain.out plain2snt.out snt2cooc.out} {
46        xinstall -m 755 ${worksrcpath}/GIZA++-v2/${exe} ${destroot}${prefix}/bin
47    }
48    xinstall -m 755 ${worksrcpath}/mkcls-v2/mkcls   ${destroot}${prefix}/bin
49    set doc ${destroot}${prefix}/share/doc/${name}
50    file mkdir ${doc}
51    xinstall -m 644 ${worksrcpath}/GIZA++-v2/README ${doc}/README.GIZA++
52    xinstall -m 644 ${worksrcpath}/mkcls-v2/README  ${doc}/README.mkcls
53}
Note: See TracBrowser for help on using the repository browser.