# $Id: Portfile,v 1.2 2006/03/15 08:06:41 mww Exp $

PortSystem 1.0

name			libmd
version			0.3
revision		1
categories		devel
platforms		darwin
maintainers		mww@opendarwin.org
description		Libmd is a cryptographic message digest library
long_description	${description}

homepage		http://www.penguin.cz/~mhi/libmd/
master_sites	ftp://ftp.penguin.cz/pub/users/mhi/libmd/
checksums		sha1 cae4815cd0eff38de800a2cb36de20dcaaad37f7
use_bzip2		yes
patchfiles		patch-Makefile.in patch-rmd160.h

configure.args	--includedir=${prefix}/include/libmd/ \
				--host=powerpc-apple-freebsd

platform darwin 8 {
	configure.env	CC=/usr/bin/gcc-4.0
}

post-destroot {
	set ln	"ln -sf libmd.1.0.dylib"
	system "cd ${destroot}${prefix}/lib && ${ln} libmd.1.dylib && ${ln} libmd.dylib"
}
