# $Id: Portfile,v 1.4 2004/05/18 01:18:25 mww Exp $

PortSystem 1.0
name		libcipher
version		4.7-RELEASE
categories	devel
maintainers	eric@opendarwin.org
description	Cipher routines from FreeBSD
#homepage
platforms	darwin
use_bzip2	yes
master_sites	opendarwin
checksums	md5 e322740002fc69c1e4e390ba461835d2
build.type	bsd
worksrcdir	${portname}
use_configure	no
patchfiles	patch-Makefile
build.env	LDADD=-install_name\\ ${prefix}/lib/libcipher.1.dylib

destroot	{ cd ${worksrcpath}
		  xinstall -m 755 -d ${destroot}${prefix}/lib
		  xinstall -m 755 -c libcipher.1.dylib \
		    ${destroot}${prefix}/lib
		  system "ln -sf libcipher.1.dylib \
		    ${destroot}${prefix}/lib/libcipher.dylib" }
