From 3ca58ac2cc1dfbe037a080c78ded43e1fb838ab9 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Sun, 29 Dec 2013 12:29:21 +0000 Subject: [PATCH] Respect HEIMDAL_HOME / KRB5_HOME. PR: ports/185236 Submitted by: Dewayne (partly) --- security/cyrus-sasl2-gssapi/Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/security/cyrus-sasl2-gssapi/Makefile b/security/cyrus-sasl2-gssapi/Makefile index 67cdd4ba8de6..ad9f86694131 100644 --- a/security/cyrus-sasl2-gssapi/Makefile +++ b/security/cyrus-sasl2-gssapi/Makefile @@ -51,20 +51,28 @@ OPTIONS_DEFAULT= BASE BASE_DESC= Use Heimdal in base BASE_CONFIGURE_ENABLE= gssapi HEIMDAL_DESC= Use Heimdal from ports -HEIMDAL_CONFIGURE_ON= --enable-gssapi=${PREFIX} --with-gss_impl=heimdal -HEIMDAL_BUILD_DEPENDS= ${PREFIX}/lib/libgssapi.so:${PORTSDIR}/security/heimdal +HEIMDAL_CONFIGURE_ON= --enable-gssapi=${HEIMDAL_HOME} \ + --with-gss_impl=heimdal +HEIMDAL_BUILD_DEPENDS= ${HEIMDAL_HOME}/lib/libgssapi.so:${PORTSDIR}/security/heimdal HEIMDAL_RUN_DEPENDS= ${HEIMDAL_BUILD_DEPENDS} -HEIMDAL_LDFLAGS= "-R${PREFIX}/lib" +HEIMDAL_LDFLAGS= "-R${HEIMDAL_HOME}/lib" MIT_DESC= Use MIT Kerberos V5 -MIT_CONFIGURE_ON= --enable-gssapi=${PREFIX} --with-gss_impl=mit +MIT_CONFIGURE_ON= --enable-gssapi=${KRB5_HOME} --with-gss_impl=mit MIT_LIB_DEPENDS= libkrb5support.so:${PORTSDIR}/security/krb5 -MIT_LDFLAGS= "-R${PREFIX}/lib" +MIT_LDFLAGS= "-R${KRB5_HOME}/lib" PLIST_FILES= lib/sasl2/libgssapiv2.a \ lib/sasl2/libgssapiv2.la \ lib/sasl2/libgssapiv2.so \ lib/sasl2/libgssapiv2.so.3 +.if !defined(HEIMDAL_HOME) +HEIMDAL_HOME= ${PREFIX} +.endif +.if !defined(KRB5_HOME) +KRB5_HOME= ${PREFIX} +.endif + .include .if ${PORT_OPTIONS:MHEIMDAL}