# $Id: Portfile,v 1.2 2006/06/03 16:00:12 mww Exp $

PortSystem 1.0
name			openssl97
version			0.9.7j
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/
distname		openssl-${version}
checksums		md5 79dd939266b069e7aca587e6ab16a055
patchfiles		patch-Makefile.org

depends_lib		port:zlib

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

destroot.destdir	INSTALL_PREFIX=${destroot}
# do not install docs, just sw
destroot.target		install_sw

test.run		yes

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