source: trunk/dports/textproc/antiword/Portfile

Last change on this file was 75309, checked in by ryandesign@…, 6 years ago

antiword: support universal and non-default build_arch; install doc files; indicate license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 75309 2011-01-21 09:12:23Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                antiword
6version             0.37
7revision            1
8categories          textproc
9platforms           darwin
10maintainers         nomaintainer
11license             GPL-2+
12
13description         Utility to read Microsoft Word (.doc) files
14
15long_description    Antiword is a utility that can read binary files from \
16                    Microsoft Word 6, 7, 97, and 2000.
17
18homepage            http://www.winfield.demon.nl/index.html
19master_sites        http://www.winfield.demon.nl/linux/
20
21checksums           md5     f868e2a269edcbc06bf77e89a55898d1
22
23patchfiles          patch-Makefile.Linux
24
25post-patch {
26    reinplace "s|/usr|${prefix}|g" ${worksrcpath}/antiword.h
27}
28
29use_configure       no
30
31variant universal {}
32if {[variant_isset universal]} {
33    set archflags ${configure.universal_cflags}
34} else {
35    set archflags ${configure.cc_archflags}
36}
37
38build.args          CC="${configure.cc} ${archflags}"
39
40destroot.args       prefix=${destroot}${prefix}
41
42post-destroot {
43    set docdir ${destroot}${prefix}/share/doc/${name}
44    xinstall -d ${docdir}
45    xinstall -m 644 -W ${worksrcpath}/Docs \
46        ChangeLog \
47        COPYING \
48        Emacs \
49        Exmh \
50        FAQ \
51        History \
52        Mutt \
53        QandA \
54        ReadMe \
55        ${docdir}
56}
Note: See TracBrowser for help on using the repository browser.