git: 20f8ae2723b0 - 2025Q4 - net-p2p/libtorrent: Use native kqueue(2)

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sun, 09 Nov 2025 23:04:34 UTC
The branch 2025Q4 has been updated by eduardo:

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

commit 20f8ae2723b0bef43d5ba91ff2fce4dc75c325ed
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2025-11-09 22:45:14 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-11-09 22:58:53 +0000

    net-p2p/libtorrent: Use native kqueue(2)
    
    - Remove option KQUEUE
      Upstream provides kqueue (*BSDs) or epoll (Linux) support.
    
    MFH:            2025Q4
    (cherry picked from commit 6adac9dec438a0139d9f4e449016e253649e173f)
---
 net-p2p/libtorrent/Makefile | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/net-p2p/libtorrent/Makefile b/net-p2p/libtorrent/Makefile
index 59ea8c332b6a..a3a53733075e 100644
--- a/net-p2p/libtorrent/Makefile
+++ b/net-p2p/libtorrent/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libtorrent
 DISTVERSION=	0.16.2
+PORTREVISION=	1
 CATEGORIES=	net-p2p
 MASTER_SITES=	https://github.com/rakshasa/rtorrent/releases/download/v${DISTVERSION}/
 
@@ -18,7 +19,9 @@ USES=		compiler:c++17-lang cpe libtool localbase:ldflags pathfix \
 USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--disable-debug
+CONFIGURE_ARGS=	--disable-debug \
+		--with-kqueue \
+		--without-epoll
 CONFIGURE_ENV=	OPENSSL_CFLAGS="-I ${OPENSSLINC}" \
 		OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto"
 
@@ -31,11 +34,4 @@ TEST_TARGET=	check
 
 TESTING_UNSAFE=	https://github.com/rakshasa/libtorrent/issues/292
 
-OPTIONS_DEFINE=		KQUEUE
-OPTIONS_DEFAULT=	KQUEUE
-
-KQUEUE_DESC=		Use kqueue(2) support
-KQUEUE_CONFIGURE_WITH=	kqueue
-KQUEUE_BROKEN_OFF=	rtorrent fails to build without kqueue(2) support, https://github.com/rakshasa/rtorrent/issues/1633
-
 .include <bsd.port.mk>