diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/openldap24-server/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/net/openldap24-server/Makefile b/net/openldap24-server/Makefile index 0593cd69ad41..c87331a0f3dc 100644 --- a/net/openldap24-server/Makefile +++ b/net/openldap24-server/Makefile @@ -56,8 +56,8 @@ WANT_OPENLDAP_VER?= 24 BROKEN= incompatible OpenLDAP version: ${WANT_OPENLDAP_VER} .endif -PORTREVISION_CLIENT= 1 -PORTREVISION_SERVER= 1 +PORTREVISION_CLIENT= 2 +PORTREVISION_SERVER= 2 OPENLDAP_SHLIB_MAJOR= 2 OPENLDAP_SHLIB_MINOR= 10.5 OPENLDAP_MAJOR= ${DISTVERSION:R} @@ -189,6 +189,15 @@ CONFIGURE_ARGS= --with-threads=posix \ # XXX FreeBSD does not implement O_DSYNC and fdatasync at this time. CFLAGS+= -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync +.if ${PORT_OPTIONS:MDEBUG} +CONFIGURE_ARGS+= --enable-debug=yes +.else +CONFIGURE_ARGS+= --disable-debug +CFLAGS+= -DNDEBUG +.endif + +MAKE_ENV+= STRIP=${STRIP} + .if !${PORT_OPTIONS:MFETCH} CONFIGURE_ARGS+= --without-fetch .endif @@ -274,12 +283,6 @@ CONFIGURE_ARGS+= --enable-constraint=${OVERLAY_ENABLE} CONFIGURE_ARGS+= --enable-dds=${OVERLAY_ENABLE} .endif -.if ${PORT_OPTIONS:MDEBUG} -CONFIGURE_ARGS+= --enable-debug=yes -.endif - -MAKE_ENV+= STRIP=${STRIP} - .if ${PORT_OPTIONS:MDEREF} CONFIGURE_ARGS+= --enable-deref=${OVERLAY_ENABLE} .endif |