git: 7075fd4d3fca - main - net/libngtcp2-wolfssl: Add libngtcp2-wolfssl 1.12.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 29 Apr 2025 12:45:36 UTC
The branch main has been updated by sunpoet:

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

commit 7075fd4d3fca0aa8c8f92c98098807e23a769ee5
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-04-29 11:43:01 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-04-29 12:42:19 +0000

    net/libngtcp2-wolfssl: Add libngtcp2-wolfssl 1.12.0
    
    ngtcp2 project is an effort to implement QUIC protocol which is now being
    discussed in IETF QUICWG for its standardization.
    
    This port provides the crypto helper library for wolfSSL backend.
---
 net/libngtcp2-wolfssl/Makefile                | 37 +++++++++++++++++++++++++++
 net/libngtcp2-wolfssl/distinfo                |  3 +++
 net/libngtcp2-wolfssl/files/patch-Makefile.in | 13 ++++++++++
 net/libngtcp2-wolfssl/pkg-descr               |  4 +++
 net/libngtcp2-wolfssl/pkg-plist               |  5 ++++
 5 files changed, 62 insertions(+)

diff --git a/net/libngtcp2-wolfssl/Makefile b/net/libngtcp2-wolfssl/Makefile
new file mode 100644
index 000000000000..48b3ec8a1648
--- /dev/null
+++ b/net/libngtcp2-wolfssl/Makefile
@@ -0,0 +1,37 @@
+PORTNAME=	ngtcp2
+PORTVERSION=	1.12.0
+CATEGORIES=	net
+MASTER_SITES=	https://github.com/ngtcp2/ngtcp2/releases/download/v${PORTVERSION}/
+PKGNAMEPREFIX=	lib
+PKGNAMESUFFIX=	-wolfssl
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Implementation of QUIC protocol (wolfssl backend)
+WWW=		https://nghttp2.org/ngtcp2/ \
+		https://github.com/ngtcp2/ngtcp2
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	libngtcp2>=${PORTVERSION}<${PORTVERSION}_99:net/libngtcp2
+LIB_DEPENDS=	libwolfssl.so:security/wolfssl
+RUN_DEPENDS=	libngtcp2>=${PORTVERSION}<${PORTVERSION}_99:net/libngtcp2
+
+USES=		libtool pathfix pkgconfig tar:xz
+
+CONFIGURE_ARGS=	--enable-lib-only \
+		--with-jemalloc \
+		--with-wolfssl \
+		--without-boringssl \
+		--without-gnutls \
+		--without-libbrotlidec \
+		--without-libbrotlienc \
+		--without-libev \
+		--without-libnghttp3 \
+		--without-openssl
+GNU_CONFIGURE=	yes
+INSTALL_TARGET=	install-strip
+INSTALL_WRKSRC=	${WRKSRC}/crypto/wolfssl
+USE_LDCONFIG=	yes
+
+.include <bsd.port.mk>
diff --git a/net/libngtcp2-wolfssl/distinfo b/net/libngtcp2-wolfssl/distinfo
new file mode 100644
index 000000000000..165024504ae6
--- /dev/null
+++ b/net/libngtcp2-wolfssl/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1745016931
+SHA256 (ngtcp2-1.12.0.tar.xz) = 2527a4c9305dbed610a000a88f94696526aa8959f74249a59f2b96ee73630629
+SIZE (ngtcp2-1.12.0.tar.xz) = 656116
diff --git a/net/libngtcp2-wolfssl/files/patch-Makefile.in b/net/libngtcp2-wolfssl/files/patch-Makefile.in
new file mode 100644
index 000000000000..afad6594b328
--- /dev/null
+++ b/net/libngtcp2-wolfssl/files/patch-Makefile.in
@@ -0,0 +1,13 @@
+--- Makefile.in.orig	2022-01-16 12:35:06 UTC
++++ Makefile.in
+@@ -425,8 +425,8 @@ top_srcdir = @top_srcdir@
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-SUBDIRS = lib tests doc $(am__append_1) $(am__append_2)
+-dist_doc_DATA = README.rst
++SUBDIRS = lib $(am__append_1)
++dist_doc_DATA =
+ ACLOCAL_AMFLAGS = -I m4
+ EXTRA_DIST = \
+ 	cmakeconfig.h.in \
diff --git a/net/libngtcp2-wolfssl/pkg-descr b/net/libngtcp2-wolfssl/pkg-descr
new file mode 100644
index 000000000000..badfac901e6b
--- /dev/null
+++ b/net/libngtcp2-wolfssl/pkg-descr
@@ -0,0 +1,4 @@
+ngtcp2 project is an effort to implement QUIC protocol which is now being
+discussed in IETF QUICWG for its standardization.
+
+This port provides the crypto helper library for wolfssl backend.
diff --git a/net/libngtcp2-wolfssl/pkg-plist b/net/libngtcp2-wolfssl/pkg-plist
new file mode 100644
index 000000000000..c0ba6b3e66e4
--- /dev/null
+++ b/net/libngtcp2-wolfssl/pkg-plist
@@ -0,0 +1,5 @@
+lib/libngtcp2_crypto_wolfssl.a
+lib/libngtcp2_crypto_wolfssl.so
+lib/libngtcp2_crypto_wolfssl.so.5
+lib/libngtcp2_crypto_wolfssl.so.5.2.0
+libdata/pkgconfig/libngtcp2_crypto_wolfssl.pc