diff options
author | knu <knu@FreeBSD.org> | 2001-02-23 17:04:43 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-02-23 17:04:43 +0000 |
commit | b1e1d2ddab2cb30b4396ede51139d8f7d04f4773 (patch) | |
tree | dd559871dffd5be8dbd74d09b0dc4d0c48f4dcd6 /net/openldap20 | |
parent | af5e1b2073dcefa0d325f79fea9c5d5569cfc3cc (diff) | |
download | FreeBSD-ports-b1e1d2ddab2cb30b4396ede51139d8f7d04f4773.zip FreeBSD-ports-b1e1d2ddab2cb30b4396ede51139d8f7d04f4773.tar.gz |
Improve toward multithreading:
- Use Sleepycat Berkeley DB 3.2 that OpenLDAP2's README
recommends. It is known to be multithread friendlier than
Berkeley DB 1.85 included in our libc or GDBM.
- Add -D_REENTRANT and -D_THREAD_SAFE to CPPFLAGS
Submitted by: Yarema <yds@dppl.com>
Diffstat (limited to 'net/openldap20')
-rw-r--r-- | net/openldap20/Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/net/openldap20/Makefile b/net/openldap20/Makefile index 070e623..89fb38e 100644 --- a/net/openldap20/Makefile +++ b/net/openldap20/Makefile @@ -7,6 +7,7 @@ PORTNAME= openldap PORTVERSION= 2.0.7 +PORTREVISION= 1 CATEGORIES= net databases MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/%SUBDIR%/ \ ftp://ftp.net.lut.ac.uk/openldap/%SUBDIR%/ \ @@ -22,6 +23,8 @@ EXTRACT_SUFX= .tgz MAINTAINER= knu@FreeBSD.org +LIB_DEPENDS= db3.2:${PORTSDIR}/databases/db3 + USE_AUTOCONF= yes USE_LIBTOOL= yes USE_OPENSSL= yes @@ -37,18 +40,14 @@ CONFIGURE_ARGS= --localstatedir=/var/run \ CONFIGURE_ARGS+= --enable-wrappers .endif -CPPFLAGS+= -I${LOCALBASE}/include +# math.h uses _REENTRANT and stdio.h uses _THREAD_SAFE, so define both. +CPPFLAGS+= -D_REENTRANT -D_THREAD_SAFE \ + -I${LOCALBASE}/include \ + -I${LOCALBASE}/include/db3 LDFLAGS+= -L${LOCALBASE}/lib -.if defined(WITH_DB2) -BUILD_DEPENDS= ${LOCALBASE}/lib/libdb2.a:${PORTSDIR}/databases/db -CPPFLAGS+= -I${LOCALBASE}/include/db2 -D_THREAD_SAFE -CONFIGURE_ARGS+= --enable-ldbm \ - --with-ldbm-api=db2 -.endif - .if defined(WITH_SASL) -LIB_DEPENDS= sasl.8:${PORTSDIR}/security/cyrus-sasl +LIB_DEPENDS+= sasl.8:${PORTSDIR}/security/cyrus-sasl CPPFLAGS+= -I${LOCALBASE}/include/sasl .endif @@ -56,7 +55,7 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \ LDFLAGS="${LDFLAGS}" INSTALLS_SHLIB= yes - + BINS= bin/ldapadd \ bin/ldapdelete \ bin/ldapmodify \ |