PortSystem 1.0

name             fbopenssl
conflicts        kerberos5
version          0.0.4
revision         6
categories       devel
# COPYING missing from tarball, exists in upstream cvs
license          Apache-2
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:project/modgssapache/fbopenssl/${version}
checksums        sha1 3fd9a08670ded86f60106d0d583655bca15aea9a

depends_lib      path:lib/libssl.dylib:openssl

worksrcdir       ${name}

patchfiles       patch-Makefile.diff

use_configure    no

build.args       CC=${configure.cc} CFG=release OPENSSLDIR=${prefix}

destroot {
    xinstall -m 644 -W ${worksrcpath}/[exec uname]-release \
        libfbopenssl.a \
        libfbopenssl${shared_ext} \
        ${destroot}${prefix}/lib
    delete ${destroot}${prefix}/include
    copy ${worksrcpath}/include ${destroot}${prefix}/include
}

set shared_ext   .so
platform darwin {
    set shared_ext .dylib
    patchfiles-append patch-Makefile-Darwin.diff
    build.args-append PREFIX=${prefix}
}

livecheck.distname  ${name}
