git: 8a1576156024 - main - irc/weechat: Make ZSTD an option

From: Bernard Spil <brnrd_at_FreeBSD.org>
Date: Mon, 23 Oct 2023 18:26:09 UTC
The branch main has been updated by brnrd:

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

commit 8a15761560240a18d4b03d85b7ecbd6de288d7eb
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2023-10-23 18:24:24 +0000
Commit:     Bernard Spil <brnrd@FreeBSD.org>
CommitDate: 2023-10-23 18:24:24 +0000

    irc/weechat: Make ZSTD an option
    
    PR:             274672
    Reported by:    Herbert J. Skuhra <herbert gojira at>
---
 irc/weechat/Makefile | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index 5ab56b1178de..b4a57fdf03e4 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	weechat
-DISTVERSION=	4.1.0
+PORTVERSION=	4.1.0
+PORTREVISION=	1
 CATEGORIES=	irc
 MASTER_SITES=	https://weechat.org/files/src/
 
@@ -13,17 +14,16 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS+=	libcurl.so:ftp/curl \
 		libgcrypt.so:security/libgcrypt \
 		libgnutls.so:security/gnutls \
-		libgpg-error.so:security/libgpg-error \
-		libzstd.so:archivers/zstd
+		libgpg-error.so:security/libgpg-error
 
 USES=		cmake cpe libtool ncurses pkgconfig tar:xz
 USE_LDCONFIG=	yes
 
 CMAKE_ARGS=	-DLIBDATADIR=${LOCALBASE}/libdata
 
-OPTIONS_DEFINE=		BACKTRACE DOCS HEADLESS ICON ICONV MANPAGES NLS
+OPTIONS_DEFINE=		BACKTRACE DOCS HEADLESS ICON ICONV MANPAGES NLS ZSTD
 OPTIONS_DEFAULT=	ASPELL BACKTRACE CHARSET HEADLESS ICON LUA MANPAGES \
-			NLS PERL PYTHON RUBY TCL TYPING
+			NLS PERL PYTHON RUBY TCL TYPING ZSTD
 OPTIONS_SUB=		yes
 
 OPTIONS_GROUP=		PLUGINS
@@ -41,7 +41,7 @@ PYTHON_DESC=		Python script support
 RUBY_DESC=		Ruby script support
 TYPING_DESC=		Typing status plugin
 
-.for _opt in ${OPTIONS_GROUP_PLUGINS} BACKTRACE HEADLESS ICONV GNUTLS NLS
+.for _opt in ${OPTIONS_GROUP_PLUGINS} BACKTRACE HEADLESS ICONV GNUTLS NLS ZSTD
 ${_opt}_CMAKE_BOOL=	ENABLE_${_opt}
 .endfor
 
@@ -65,6 +65,7 @@ RUBY_USES=		ruby
 TCL_CMAKE_ON=		-DTCL_VERSION:STRING="${TCL_VER}" \
 			-DTCL_TCLSH:PATH="${TCLSH}"
 TCL_USES=		tcl
+ZSTD_LIB_DEPENDS=	libzstd.so:archivers/zstd
 
 .include <bsd.port.pre.mk>