freebsd-ports/security/cyrus-sasl2-ldapdb/Makefile

73 lines
1.5 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= ldapdb
PORTVERSION= 2.1.26
#PORTREVISION= 0
CATEGORIES= security ipv6
MASTER_SITES= ftp://ftp.cyrusimap.org/cyrus-sasl/
PKGNAMEPREFIX= cyrus-sasl-
DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}
MAINTAINER= ume@FreeBSD.org
COMMENT= SASL LDAPDB auxprop plugin
2011-09-24 11:13:35 +02:00
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
CYRUS_SASL2_DIR=${MASTERDIR}/../cyrus-sasl2
DISTINFO_FILE= ${CYRUS_SASL2_DIR}/distinfo
PATCHDIR= ${CYRUS_SASL2_DIR}/files
2011-09-24 11:13:35 +02:00
INSTALL_WRKSRC= ${WRKSRC}/plugins
USE_LDCONFIG= yes
2010-12-04 08:34:27 +01:00
USE_AUTOTOOLS= libtool
USE_OPENSSL= yes
GNU_CONFIGURE= yes
.if defined(WITH_OPENLDAP_VER)
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
.endif
USE_OPENLDAP= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--with-plugindir=${PREFIX}/lib/sasl2 \
--with-dbpath=${PREFIX}/etc/sasldb2 \
2013-01-08 16:15:57 +01:00
--with-lib-subdir=lib \
--includedir=${PREFIX}/include \
--enable-static \
--with-rc4=openssl
CONFIGURE_ARGS+=--with-dblib=none \
--disable-anon \
--disable-cram \
--disable-digest \
--disable-gssapi \
--disable-krb4 \
--disable-ntlm \
--disable-otp \
2011-09-24 11:13:35 +02:00
--disable-plain \
--disable-scram
CONFIGURE_ARGS+=--enable-ldapdb --with-ldap=${LOCALBASE}
PLIST_FILES= lib/sasl2/libldapdb.a \
2007-02-04 01:12:31 +01:00
lib/sasl2/libldapdb.la \
lib/sasl2/libldapdb.so \
lib/sasl2/libldapdb.so.3
.include <bsd.port.pre.mk>
.if ${OPENSSLBASE} == /usr
CONFIGURE_ARGS+=--with-openssl=yes
.else
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
.endif
do-build:
cd ${WRKSRC}/include && ${MAKE}
cd ${WRKSRC}/plugins && ${MAKE}
.include <bsd.port.post.mk>