From 7a7383a8e59952f1dcad05cbae4e3cb1959f5bb7 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Fri, 27 Jun 2014 05:49:31 +0000 Subject: Optionify. --- security/pam_krb5/Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'security/pam_krb5') diff --git a/security/pam_krb5/Makefile b/security/pam_krb5/Makefile index ba4cba866f1d..92c2cad58829 100644 --- a/security/pam_krb5/Makefile +++ b/security/pam_krb5/Makefile @@ -16,11 +16,19 @@ CONFLICTS= pam_krb5-rh-2.* USES= perl5 gmake GNU_CONFIGURE= yes -.if defined(KRB5_IMPL) && ${KRB5_IMPL} == heimdal +OPTIONS_SINGLE= LINK +OPTIONS_SINGLE_LINK= MIT HEIMDAL +OPTIONS_DEFAULT= MIT +MIT_DESC= Link against MIT Kerberos +HEIMDAL_DESC= Link against Heimdal Kerberos + +.include + +.if ${PORT_OPTIONS:MHEIMDAL} .if defined(HEIMDAL_HOME) KRB5_DIR?= ${HEIMDAL_HOME} .endif -.elif defined(KRB5_IMPL) && ${KRB5_IMPL} == mit +.elif ${PORT_OPTIONS:MMIT} LIB_DEPENDS= libkrb5.so:${PORTSDIR}/security/krb5 .if defined(KRB5_HOME) KRB5_DIR?= ${KRB5_HOME} @@ -30,11 +38,10 @@ IGNORE= you must define KRB5_IMPL to be "mit" or "heimdal" .endif MANDIR= ${STAGEDIR}${MANPREFIX}/man -MANDIR= ${STAGEDIR}${PREFIX}/share/man KRB5_DIR?= ${LOCALBASE} CONFIGURE_ARGS= --with-krb5="${KRB5_DIR}" post-install: cd ${WRKSRC} && ${MAKE_CMD} install-man DESTDIR=${STAGEDIR} -.include +.include -- cgit v1.2.3