# -*- 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

PortSystem          1.0

name                bdes
version             4.7-RELEASE
revision            2
checksums           md5     7b83cf1258bd73784ce70629dcad17c5 \
                    rmd160  d03e7248498122da4bcb418a589589c0250e0035 \
                    sha256  ac76d2f0f4c319ff8b2f2e3f94916eae0865829d73d16d97c6da66d34618d6df \
                    size    30768

categories          sysutils
platforms           darwin
maintainers         nomaintainer
license             BSD

description         Block-based DES cipher utility

long_description    ${description}

homepage            https://www.cs.dartmouth.edu/~trdata/reports/abstracts/TR91-158/
master_sites        macports
use_bzip2           yes

depends_lib         port:libcipher

worksrcdir          ${name}

patchfiles          patch-Makefile \
                    bdes.c.patch

use_configure       no

variant universal {}

build.type          bsd
build.args          CC="${configure.cc}" \
                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"

destroot {
    xinstall -m 0755 ${worksrcpath}/bdes ${destroot}${prefix}/bin
    xinstall -m 0644 ${worksrcpath}/bdes.1.gz ${destroot}${prefix}/share/man/man1
    xinstall -m 0644 ${worksrcpath}/bdes.ps ${destroot}${prefix}/share/doc
}

notes {
    The DES cipher should no longer be considered secure. Please consider\
    using a more modern alternative.
}
