git: e8d87b63b183 - main - net/libzmq4: Add option enabling draft APIs

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 23 Apr 2024 10:47:32 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e8d87b63b183efb3f70138e384875743375f6f66

commit e8d87b63b183efb3f70138e384875743375f6f66
Author:     Yuri Victorovich <yuri@freebsd.org>
AuthorDate: 2024-04-23 08:44:56 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-04-23 10:47:13 +0000

    net/libzmq4: Add option enabling draft APIs
    
    Some draft APIs are necessary in certain usage contexts.
    For example, the poller API is draft, but is necessary in order for ZMQ
    applications to implement timeouts.
    
    This is why this option enabled by default.
    
    PR:             278391
---
 net/libzmq4/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/net/libzmq4/Makefile b/net/libzmq4/Makefile
index b5f02d5c32ea..ca55180b07f5 100644
--- a/net/libzmq4/Makefile
+++ b/net/libzmq4/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	libzmq4
 DISTVERSIONPREFIX=	v
 DISTVERSION=	4.3.5
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	https://github.com/zeromq/libzmq/releases/download/${DISTVERSIONFULL}/
 DISTNAME=	zeromq-${DISTVERSION}
@@ -26,22 +27,24 @@ TEST_TARGET=	check
 
 CONFLICTS=	libzmq[^4] zmq
 
-OPTIONS_DEFINE=			CURVE LIBUNWIND MANPAGES STATIC
-OPTIONS_DEFAULT=		MANPAGES NORM PGM CURVE STATIC
+OPTIONS_DEFINE=			CURVE DRAFT_API LIBUNWIND MANPAGES STATIC
+OPTIONS_DEFAULT=		CURVE DRAFT_API MANPAGES NORM PGM STATIC
 OPTIONS_GROUP=			MULTICAST
 OPTIONS_GROUP_MULTICAST=	NORM PGM
 OPTIONS_SUB=			yes
 
 CURVE_DESC=	CURVE security backend
+DRAFT_API_DESC=	Enable draft (experimental) APIs
 LIBUNWIND_DESC=	Use libunwind to print stack trace in case of error
 MULTICAST_DESC=	Reliable Multicast Transports
 NORM_DESC=	Enable NORM via NRL
 PGM_DESC=	Enable PGM transport via OpenPGM
 
 CURVE_LIB_DEPENDS=		libsodium.so:security/libsodium
-CURVE_CONFIGURE_OFF=	--disable-curve
+CURVE_CONFIGURE_OFF=		--disable-curve
 CURVE_CONFIGURE_WITH=		libsodium
 CURVE_PLIST_FILES=		bin/curve_keygen
+DRAFT_API_CONFIGURE_ENABLE=	drafts
 LIBUNWIND_LIB_DEPENDS=		libunwind.so:devel/libunwind
 LIBUNWIND_CONFIGURE_ENABLE=	libunwind
 NORM_LIB_DEPENDS=		libnorm.so:net/norm