aboutsummaryrefslogtreecommitdiffstats
path: root/www/serf
diff options
context:
space:
mode:
authorlev <lev@FreeBSD.org>2016-03-19 22:23:02 +0800
committerlev <lev@FreeBSD.org>2016-03-19 22:23:02 +0800
commit4a3086ebc8895f582e24f9d6bc8f750b476c48c7 (patch)
treed4681899d27d311eec1fce03fdbdc5c247f9827a /www/serf
parent06211e0c20a28d2f0d72a436f8a56bfbda67a23f (diff)
downloadfreebsd-ports-gnome-4a3086ebc8895f582e24f9d6bc8f750b476c48c7.tar.gz
freebsd-ports-gnome-4a3086ebc8895f582e24f9d6bc8f750b476c48c7.tar.zst
freebsd-ports-gnome-4a3086ebc8895f582e24f9d6bc8f750b476c48c7.zip
Ad support for different Kerberos installations.
PR: 207508
Diffstat (limited to 'www/serf')
-rw-r--r--www/serf/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/www/serf/Makefile b/www/serf/Makefile
index a564757fa337..e44d96e5b525 100644
--- a/www/serf/Makefile
+++ b/www/serf/Makefile
@@ -19,7 +19,15 @@ USES= scons tar:bzip2 cpe
USE_OPENSSL= yes
USE_LDCONFIG= yes
-OPTIONS_DEFINE= DOCS GSSAPI
+OPTIONS_DEFINE= DOCS
+OPTIONS_RADIO= KERBEROS
+OPTIONS_RADIO_KERBEROS= MIT HEIMDAL HEIMDAL_BASE
+
+HEIMDAL_DESC= Heimdal Kerberos (security/heimdal)
+HEIMDAL_BASE_DESC= Heimdal Kerberos (base)
+MIT_DESC= MIT Kerberos (security/krb5)
+MIT_LIB_DEPENDS= libkrb5.so.3:${PORTSDIR}/security/krb5
+HEIMDAL_LIB_DEPENDS= libkrb5.so.26:${PORTSDIR}/security/heimdal
SCONS_ARGS= APR=${LOCALBASE}/bin/apr-1-config
SCONS_ARGS+= APU=${LOCALBASE}/bin/apu-1-config
@@ -31,9 +39,12 @@ INSTALL_TARGET= install --install-sandbox=${STAGEDIR}
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MGSSAPI}
+.if ${PORT_OPTIONS:MHEIMDAL_BASE}
SCONS_ARGS+= GSSAPI="/usr"
.endif
+.if ${PORT_OPTIONS:MMIT} || ${PORT_OPTIONS:MHEIMDAL}
+SCONS_ARGS+= GSSAPI="${LOCALBASE}"
+.endif
do-build:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_CMD} ${SCONS_ARGS})