source: trunk/dports/textproc/wordnet/Portfile

Last change on this file was 103624, checked in by ryandesign@…, 4 years ago

wordnet: build libWN.dylib for the right architecture(s)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 103624 2013-03-03 15:08:36Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                wordnet
6version             3.0
7revision            3
8categories          textproc
9license             Permissive
10maintainers         nomaintainer
11description         Lexical database for the English language
12long_description    WordNet® is a large lexical database of English, developed \
13                    under the direction of George A. Miller. Nouns, verbs, \
14                    adjectives and adverbs are grouped into sets of cognitive \
15                    synonyms (synsets), each expressing a distinct concept. \
16                    Synsets are interlinked by means of conceptual-semantic \
17                    and lexical relations. WordNet's structure makes it a \
18                    useful tool for computational linguistics and natural \
19                    language processing.
20homepage            http://wordnet.princeton.edu/
21platforms           darwin
22master_sites        http://wordnet.princeton.edu/${version}/ \
23                    ftp://ftp.cogsci.princeton.edu/pub/wordnet/${version}/
24distname            WordNet-${version}
25checksums           md5     89b4db7c6840ce69a8e315a3f83d996b \
26                    sha1    aeb7887cb4935756cf77deb1ea86973dff0e32fb \
27                    rmd160  87b3719273ec8f1d87742d6802af4d442b6ad040
28use_bzip2           yes
29
30depends_lib         port:tcl \
31                    port:tk
32patchfiles          patch-lib-wnrtl.c.diff
33
34post-patch {
35    reinplace "s|/usr/local/WordNet-3.0/dict|${prefix}/share/WordNet-3.0/dict|g" ${worksrcpath}/include/wn.h
36}
37
38configure.args      --mandir=${prefix}/share/man \
39                    --with-tcl=${prefix}/lib \
40                    --with-tk=${prefix}/lib
41configure.cflags-append \
42                    -DUSE_INTERP_RESULT
43
44variant universal {}
45
46post-configure {
47    reinplace "s|${prefix}/dict|${prefix}/share/WordNet-3.0/dict|g" ${worksrcpath}/config.h
48}
49
50# Build a shared library (so does FreeBSD's port).
51post-build {
52    system "${configure.cc} [get_canonical_archflags cc] -install_name ${prefix}/lib/libWN.dylib -dynamiclib ${worksrcpath}/lib/*.o -o ${worksrcpath}/lib/libWN.dylib"
53}
54
55destroot.args-append    dictdir=${prefix}/share/WordNet-3.0/dict \
56                        htmldir=${prefix}/share/WordNet-3.0/doc/html \
57                        psdir=${prefix}/share/WordNet-3.0/doc/ps \
58                        pdfdir=${prefix}/share/WordNet-3.0/doc/pdf
59
60post-destroot {
61    xinstall -m 644 ${worksrcpath}/lib/libWN.dylib ${destroot}${prefix}/lib/
62}
Note: See TracBrowser for help on using the repository browser.