# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup compiler_blacklist_versions 1.0
checksums rmd160 cb6ec84514a1a1fab8a0faefdc3ecca706df8b2d \
sha256 5a6e2284a53de5702d3dc2be3b9339c963f9b5397d3fbbc53beb249380a781f5 \
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers {ryandesign @ryandesign} openmaintainer
license MIT BSD ISC OpenLDAP-2.8+
description Kerberos is a network authentication protocol.
long_description Kerberos is a network authentication protocol. \
It is designed to provide strong authentication \
for client/server applications by using secret-key \
cryptography. A free implementation of this protocol \
is available from the Massachusetts Institute of \
Technology. Kerberos is available in many commercial \
homepage http://web.mit.edu/kerberos/
master_sites ${homepage}dist/krb5/${branch}/
depends_build port:pkgconfig \
depends_lib port:gettext \
path:lib/libssl.dylib:openssl
worksrcdir ${worksrcdir}/src
patchfiles patch-util__verto__Makefile.in-use-nonzero-compat-version.diff \
patch-config__shlib.conf-do-not-pass-dylib-file-ldflags.diff \
patch-lib_rpc_Makefile.in-explicitly-link-krb5support.diff \
# AI_NUMERICSERV not available for OS X < 10.6
patchfiles-append patch-src-lib-apputils-net-server.c.diff
# kerberos5 fails to build in its own presence, see #23769, #37944
# remove ${prefix}/lib from configure.ldflags to allow linking against its own libs first
# adding ${worksrcpath}/lib is not necessary and pollutes krb5-config --libs and pkg-config files
configure.ldflags-delete -L${prefix}/lib
configure.python ${prefix}/bin/python2.7
configure.args --mandir=${prefix}/share/man \