# $Id: Portfile,v 1.22 2006/06/02 17:30:25 mww Exp $

PortSystem 1.0
name			openssl
version			0.9.8b
platforms		darwin freebsd
categories		devel security
maintainers		mww@opendarwin.org
homepage		http://www.openssl.org/
description		OpenSSL SSL/TLS cryptography library

long_description \
	The OpenSSL Project is a collaborative effort to develop a robust, \
	commercial-grade, full-featured, and Open Source toolkit implementing \
	the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security \
	(TLS v1) protocols as well as a full-strength general purpose \
	cryptography library.

master_sites	http://www.openssl.org/source/
checksums		md5 12cedbeb6813a0d7919dbf1f82134b86

depends_lib		port:zlib

variant darwin {
	patchfiles	patch-Makefile.org patch-crypto-Makefile
}

configure.cmd	./config
configure.args	-L${prefix}/lib --openssldir=${prefix}/etc/openssl zlib no-asm no-krb5 shared

platform darwin 6 {
	depends_lib-append	port:dlcompat
}

platform darwin 8 {
	build.args	CC=/usr/bin/gcc-4.0
}

destroot.destdir	INSTALL_PREFIX=${destroot}
destroot.args		MANDIR=${prefix}/share/man

test.run		yes
