# $Id: Portfile,v 1.2 2005/09/06 21:42:44 toby Exp $

PortSystem 1.0
name             fbopenssl
version          0.0.4
categories       devel
maintainers      toby@opendarwin.org
description      SPNEGO library
long_description \
	fbopenssl is a library of extensions to OpenSSL to support \
	SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism).
homepage         http://modgssapache.sourceforge.net/
platforms        darwin
master_sites     sourceforge:modgssapache
checksums        sha1 3fd9a08670ded86f60106d0d583655bca15aea9a

depends_lib      port:openssl

worksrcdir       ${name}

patchfiles

post-patch {
	reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile
}

configure {}

build.args       CFG=release OPENSSLDIR=${prefix}

destroot {
	xinstall ${worksrcpath}/[exec uname]-release/libfbopenssl.a \
		${destroot}${prefix}/lib
	xinstall ${worksrcpath}/[exec uname]-release/libfbopenssl.dylib \
		${destroot}${prefix}/lib
}

platform darwin {
	patchfiles-append patch-Makefile
}
