# $Id: Portfile 30224 2007-10-22 22:49:14Z jmpp@macports.org $

PortSystem 1.0
name             fbopenssl
version          0.0.4
categories       devel
maintainers      nomaintainer
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
}

use_configure    no

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
}
