Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2013 12:29:21 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337973 - head/security/cyrus-sasl2-gssapi
Message-ID:  <201312291229.rBTCTLxn020146@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ume
Date: Sun Dec 29 12:29:21 2013
New Revision: 337973
URL: http://svnweb.freebsd.org/changeset/ports/337973

Log:
  Respect HEIMDAL_HOME / KRB5_HOME.
  
  PR:		ports/185236
  Submitted by:	Dewayne <dewayne__at__heuristicsystems.com.au> (partly)

Modified:
  head/security/cyrus-sasl2-gssapi/Makefile

Modified: head/security/cyrus-sasl2-gssapi/Makefile
==============================================================================
--- head/security/cyrus-sasl2-gssapi/Makefile	Sun Dec 29 12:27:20 2013	(r337972)
+++ head/security/cyrus-sasl2-gssapi/Makefile	Sun Dec 29 12:29:21 2013	(r337973)
@@ -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 <bsd.port.pre.mk>
 
 .if ${PORT_OPTIONS:MHEIMDAL}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312291229.rBTCTLxn020146>