source: trunk/dports/textproc/tnef2txt/Portfile

Last change on this file was 136567, checked in by ryandesign@…, 2 years ago

tnef2txt: use expand operator instead of eval

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 136567 2015-05-21 21:43:52Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                tnef2txt
7version             1.4
8revision            1
9categories          textproc
10platforms           darwin
11maintainers         nomaintainer
12
13description         Converts Microsoft TNEF attachments to ASCII text
14
15long_description    This is a simple program used to decode Microsoft's \
16                    Translation Neutral Encapsulation Format (TNEF), which \
17                    is used by various Microsoft OS products to transfer \
18                    MAPI information through text only gateways such as SMTP.
19
20homepage            http://www.fiction.net/blong/programs/#tnef2txt
21master_sites        http://www.fiction.net/blong/programs/tnef2txt/
22
23checksums           md5     a32a9fe1d558f076c2b0d24b742661f6
24
25patchfiles          patch-Makefile
26
27use_configure       no
28
29variant universal {}
30
31set endian_define ""
32if {${os.endian} == "big"} {
33    set endian_define " -D __BYTE_ORDER=4321"
34}
35
36build.target        tnef2txt
37build.args          CC="${configure.cc}" \
38                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
39                    PLATFORM="-D LINUX${endian_define}"
40# -D LINUX used because it happens to set the other defines correctly
41# not defining a platform is bad because it assumes big-endian
42
43destroot {
44    xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
45    xinstall -d ${destroot}${prefix}/share/doc/${name}
46    xinstall -m 644 {*}[glob ${worksrcpath}/apptnef.*] ${destroot}${prefix}/share/doc/${name}
47}
Note: See TracBrowser for help on using the repository browser.