Simplify and standardize port structure.

Submitted by:	hrs
This commit is contained in:
Cy Schubert 2015-11-04 02:29:38 +00:00
parent a2e61ab8cf
commit e8ab409d89
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=400730

View file

@ -23,36 +23,16 @@ OPTIONS_SINGLE= LINK
OPTIONS_SINGLE_LINK= MIT HEIMDAL_BASE HEIMDAL_PORT
OPTIONS_DEFAULT= MIT
MIT_DESC= Link against MIT Kerberos
MIT_USES= gssapi:mit
HEIMDAL_PORT_DESC= Link against Heimdal in ports Kerberos
HEIMDAL_PORT_USES= gssapi:heimdal
HEIMDAL_BASE_DESC= Link against Heimdal in base Kerberos
HEIMDAL_BASE_USES= gssapi:base
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MHEIMDAL_BASE}
USES+= gssapi:base
.elif ${PORT_OPTIONS:MHEIMDAL_PORT}
USES+= gssapi:heimdal
.if defined(HEIMDAL_HOME)
KRB5_DIR?= ${HEIMDAL_HOME}
.else
KRB5_DIR?= ${LOCALBASE}
.endif
CONFIGURE_ARGS+= --with-krb5="${KRB5_DIR}" \
--with-krb5-include="${KRB5_DIR}/include/heimdal" \
--with-krb5-lib="${KRB5_DIR}/lib/heimdal"
CONFIGURE_ENV= PATH_KRB5_CONFIG=${KRB5_DIR}/bin/krb5-config
.elif ${PORT_OPTIONS:MMIT}
USES+= gssapi:mit
LIB_DEPENDS= libkrb5.so.3:${PORTSDIR}/security/krb5
.if defined(KRB5_HOME)
KRB5_DIR?= ${KRB5_HOME}
.else
KRB5_DIR?= ${LOCALBASE}
.endif
CONFIGURE_ARGS+= --with-krb5="${KRB5_DIR}"
.else
IGNORE= KRB5_IMPL option must be set
.endif
CONFIGURE_ARGS+= --with-krb5="${GSSAPIBASEDIR}" \
--with-krb5-include="${GSSAPIINCDIR}" \
--with-krb5-lib="${GSSAPILIBDIR}"
CONFIGURE_ENV= PATH_KRB5_CONFIG="${KRB5CONFIG}"
MANDIR= ${STAGEDIR}${MANPREFIX}/man