pkgsrc/databases/openldap1/Makefile
2002-10-09 12:27:37 +00:00

55 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2002/10/09 12:28:16 wiz Exp $
#
DISTNAME= openldap-1.2.13
SVR4_PKGNAME= olda1
CATEGORIES= databases
MASTER_SITES= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
EXTRACT_SUFX= .tgz
MAINTAINER= kleink@netbsd.org
HOMEPAGE= http://www.OpenLDAP.org/
COMMENT= Lightweight directory access protocol server and client package
# for the moment without threads and thus without slurpd and ldapd
#DEPENDS+= ../../devel/mit-pthreads
CONFLICTS+= ldapsdk-[0-9]*
USE_BUILDLINK2= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/build/ltconfig
# unfortunately, --enable-phonetic cannot be disabled by runtime configuration
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-dns
CONFIGURE_ARGS+= --enable-cldap
CONFIGURE_ARGS+= --enable-passwd
CONFIGURE_ARGS+= --enable-shell
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+= --enable-wrappers
.endif
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
.include "../../databases/db/buildlink2.mk"
CPPFLAGS+= -I${BUILDLINK_PREFIX.db}/include/db2
LIBS= -ldb2 -lpthread -lrt
.endif
PLIST_SRC= ${PKGDIR}/PLIST.common
PLIST_SRC+= ${PKGDIR}/PLIST.${LOWER_OPSYS}
post-configure:
${ECHO} "SLAPD_LIBS = " >> ${WRKSRC}/servers/slapd/tools/Makefile
.if defined(KERBEROS)
PKG_USE_KERBEROS= yes
CONFIGURE_ARGS+=--with-kerberos
.else
CONFIGURE_ARGS+=--without-kerberos
.endif
.include "../../mk/bsd.pkg.mk"