summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorveego <veego>2000-05-05 12:08:37 +0000
committerveego <veego>2000-05-05 12:08:37 +0000
commit6c5a6074ee7aab587832d029df0fcddef03a5316 (patch)
tree2e0591b4ffda0379bb7f1c545ad781ac1c7431d3
parent1ff06d81bd46aae931d8f527ee7e05267f8b284f (diff)
downloadpkgsrc-6c5a6074ee7aab587832d029df0fcddef03a5316.tar.gz
Add support to build it on Solaris.
-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