# $Id: Portfile 81587 2011-08-02 11:03:11Z jmr@macports.org $

PortSystem 1.0
name			openssl97
version			0.9.7m
platforms		darwin freebsd
categories		devel security
maintainers		mww
homepage		http://www.openssl.org/
license			BSD
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 74a4d1b87e1e6e1ec95dbe58cb4c5b9a \
				sha1 546f6bcebdf72a633bad087469d3741a42f7b383 \
				rmd160 fed13325d90ae4749d7ee858931d6925c3955614
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

build.args		CC=${configure.cc}

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

test.run		yes

universal_variant	no

livecheck.type	regex
livecheck.url	${master_sites}
livecheck.regex	openssl-(0.9.7\[a-z\])
