svn commit: r396801 - head/net/openldap24-server

Xin LI delphij at FreeBSD.org
Sun Sep 13 07:55:26 UTC 2015


Author: delphij
Date: Sun Sep 13 07:55:25 2015
New Revision: 396801
URL: https://svnweb.freebsd.org/changeset/ports/396801

Log:
  Define NDEBUG and disable debugging when DEBUG is disabled, and do so for
  both client and server.

Modified:
  head/net/openldap24-server/Makefile

Modified: head/net/openldap24-server/Makefile
==============================================================================
--- head/net/openldap24-server/Makefile	Sun Sep 13 07:02:47 2015	(r396800)
+++ head/net/openldap24-server/Makefile	Sun Sep 13 07:55:25 2015	(r396801)
@@ -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=${O
 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


More information about the svn-ports-all mailing list