PortSystem          1.0

name                mmencode
version             2.7
revision            0
checksums           rmd160  ae322cad0653140cbe7f0148ce48757df98c26b0 \
                    sha256  9c0281bdce32a7d3e61c1e3c703a748acb5d216d082a718efa316f68b9808a96 \
                    size    262881

categories          textproc
license             Permissive
maintainers         nomaintainer
description         Translate to and from mail-oriented encoding formats

long_description \
   The mimencode program simply converts a byte stream into (or out of) one \
   of the standard mail encoding formats defined by MIME, the proposed \
   standard for internet multimedia mail formats.  Such an encoding is \
   necessary because binary data cannot be sent through the mail.  The \
   encodings understood by mimencode are preferable to the use of the \
   uuencode/uudecode programs, for use in mail, in several respects that \
   were important to the authors of MIME.

master_sites        ftp://ftp.funet.fi/pub/unix/mail/metamail/ \
                    freebsd

distname            mm${version}
extract.suffix      .tar.Z

patchfiles          implicit.patch

use_configure       no

variant universal {}

build.dir           ${worksrcpath}/src/metamail

build.args          CC="${configure.cc} [get_canonical_archflags cc]"

build.target        mmencode

destroot {
   xinstall -m 755 -W ${build.dir} mmencode ${destroot}${prefix}/bin
   xinstall -m 644 -W ${worksrcpath}/src/man mmencode.1 \
      ${destroot}${prefix}/share/man/man1
   ln -s mmencode ${destroot}${prefix}/bin/mimencode
}
