# $Id: Portfile 56208 2009-08-25 09:14:00Z ryandesign@macports.org $

PortSystem 1.0
name		bdes
version		4.7-RELEASE
revision	1
categories	sysutils
maintainers	nomaintainer
description	Block-based DES cipher utility
long_description	${description}
platforms	darwin
use_bzip2	yes
master_sites	macports
checksums	md5 7b83cf1258bd73784ce70629dcad17c5
depends_lib	lib:libcipher.1:libcipher
build.type	bsd
build.args	LDADD+=-L${prefix}/lib\\ -lcipher
worksrcdir	${name}
patchfiles	patch-Makefile

configure	{ reinplace "s|MAN|MAN1|" ${worksrcpath}/Makefile }

destroot	{ system "install -o root -m 755 -d ${destroot}${prefix}/bin"
		  system "install -o root -m 755 -d ${destroot}${prefix}/share/man/man1"
		  system "install -o root -m 755 -d ${destroot}${prefix}/share/doc"
		  system "install -o root -m 755 -c ${worksrcpath}/bdes \
		    ${destroot}${prefix}/bin"
		  system "install -o root -m 644 -c ${worksrcpath}/bdes.1.gz \
		    ${destroot}${prefix}/share/man/man1"
		  system "install -o root -m 644 -c ${worksrcpath}/bdes.ps \
		    ${destroot}${prefix}/share/doc" }
