PortSystem          1.0

name                mmencode
version             2.7
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.

platforms           darwin

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

checksums           md5     fd5617ea87e20d7f2fa839e1d1fede60 \
                    sha1    8f213baec9b17c05bcb066f616977a561757d7a6 \
                    rmd160  ae322cad0653140cbe7f0148ce48757df98c26b0
distname            mm${version}
extract.suffix      .tar.Z
worksrcdir          ${distname}/src/metamail

patchfiles          patch-codes.c.diff

use_configure       no

variant universal {}

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

build.target        mmencode

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