# -*- 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
description Converts Microsoft TNEF attachments to ASCII text
long_description This is a simple program used to decode Microsoft's \
Translation Neutral Encapsulation Format (TNEF), which \
is used by various Microsoft OS products to transfer \
MAPI information through text only gateways such as SMTP.
homepage http://www.fiction.net/blong/programs/#tnef2txt
master_sites http://www.fiction.net/blong/programs/tnef2txt/
checksums md5 a32a9fe1d558f076c2b0d24b742661f6
patchfiles patch-Makefile
if {${os.endian} == "big"} {
set endian_define " -D __BYTE_ORDER=4321"
build.args CC="${configure.cc}" \
CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
PLATFORM="-D LINUX${endian_define}"
# -D LINUX used because it happens to set the other defines correctly
# not defining a platform is bad because it assumes big-endian
xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 {*}[glob ${worksrcpath}/apptnef.*] ${destroot}${prefix}/share/doc/${name}