summaryrefslogtreecommitdiff
path: root/databases/openldap
diff options
context:
space:
mode:
authorveego <veego@pkgsrc.org>2000-05-05 12:08:37 +0000
committerveego <veego@pkgsrc.org>2000-05-05 12:08:37 +0000
commit8c1ac9e4e0bf3eafd86fcdf55750c44c6a3166cd (patch)
tree2e0591b4ffda0379bb7f1c545ad781ac1c7431d3 /databases/openldap
parente4568232c9d8133010982a2c13a59115ff1066eb (diff)
downloadpkgsrc-8c1ac9e4e0bf3eafd86fcdf55750c44c6a3166cd.tar.gz
Add support to build it on Solaris.
Diffstat (limited to 'databases/openldap')
-rw-r--r--databases/openldap/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/databases/openldap/Makefile b/databases/openldap/Makefile
index 68d96649208..f9f2c1d5606 100644
--- a/databases/openldap/Makefile
+++ b/databases/openldap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 1999/09/17 06:46:31 simonb Exp $
+# $NetBSD: Makefile,v 1.14 2000/05/05 12:08:37 veego Exp $
#
DISTNAME= openldap-1.2.7
@@ -18,16 +18,24 @@ CONFLICTS+= ldapsdk*
USE_LIBTOOL= yes
+.include "../../mk/bsd.prefs.mk"
+
# unfortunately, --enable-phonetic cannot be disabled by runtime configuration
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--enable-dns --enable-cldap \
- --enable-wrappers --enable-passwd --enable-shell
+CONFIGURE_ARGS+=--enable-dns --enable-cldap --enable-passwd --enable-shell
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+= --enable-wrappers
+.endif
+
+.if ${OPSYS} == "SunOS"
+DEPENDS+= db-2.7.7:../../databases/db
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/db2"
+CONFIGURE_ENV+= LIBS="-ldb2 -lpthread -lrt"
+.endif
post-configure:
${ECHO} "SLAPD_LIBS = " >> ${WRKSRC}/servers/slapd/tools/Makefile
-.include "../../mk/bsd.prefs.mk"
-
.if defined(KERBEROS) && ${KERBEROS} == 4
USE_KERBEROS= yes
CONFIGURE_ARGS+=--with-kerberos