210b03a87c
Version 3.4 (2021-12-18) New features * core: add support of static arrays in hdata * core: add command /toggle * api: add parameters pointers, extra_vars and options in function hdata_search * api: add user variables in evaluation of expressions with "define:name,value" * api: add IRC message parameters "param1" to "paramN" and "num_params" in output of irc_message_parse * irc: allow quotes around IRC message in command /server fakerecv * trigger: hide key and password in command "/msg nickserv setpass nick key password" * trigger: add support of option "-server" when hiding passwords in command /msg nickserv register Bug fixes * core: fix memory leak in evaluated expression "split:number,seps,flags,xxx" when multiple "strip_items" are given * core: fix random integer number with large range in evaluation of expressions on GNU/Hurd * core: fix access to integer/long/time arrays in hdata * api: fix search of option when the section is not given in functions config_search_option and config_search_section_option * irc: fix join of channels with long name * irc: fix parsing of parameters in all IRC messages * irc: fix parsing of CAP message when there is no prefix * irc: fix parsing of TAGMSG message when there is a colon before the channel
64 lines
1.9 KiB
Makefile
64 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.130 2021/12/19 13:22:21 nia Exp $
|
|
|
|
DISTNAME= weechat-3.4
|
|
CATEGORIES= chat
|
|
MASTER_SITES= https://www.weechat.org/files/src/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= tonio@NetBSD.org
|
|
HOMEPAGE= https://www.weechat.org/
|
|
COMMENT= Lightweight and user friendly curses based IRC client
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
.include "../../lang/ruby/rubyversion.mk"
|
|
|
|
TOOL_DEPENDS+= ${RUBY_PKGPREFIX}-asciidoctor-[0-9]*:../../textproc/ruby-asciidoctor
|
|
|
|
USE_TOOLS+= msgfmt pkg-config
|
|
USE_LANGUAGES= c99
|
|
USE_CMAKE= yes
|
|
FAKE_NCURSES= yes
|
|
|
|
CMAKE_ARGS+= -DASCIIDOCTOR_FOUND=ON
|
|
CMAKE_ARGS+= -DASCIIDOCTOR_EXECUTABLE=${PREFIX}/bin/asciidoctor${RUBY_VER}
|
|
CMAKE_ARGS+= -DENABLE_GUILE=OFF
|
|
CMAKE_ARGS+= -DENABLE_TCL=OFF
|
|
CMAKE_ARGS+= -DENABLE_JAVASCRIPT=OFF
|
|
CMAKE_ARGS+= -DENABLE_PHP=OFF
|
|
CMAKE_ARGS+= -DENABLE_SPELL=OFF
|
|
CMAKE_ARGS+= -DENABLE_CHARSET=ON
|
|
CMAKE_ARGS+= -DENABLE_MAN=ON
|
|
CMAKE_ARGS+= -DLOCALEDIR=${PKGLOCALEDIR}/locale
|
|
CMAKE_ARGS+= -DMANDIR=${PREFIX}/${PKGMANDIR}
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
LDFLAGS+= ${BUILDLINK_LDADD.gettext}
|
|
LDFLAGS.Darwin+= -lresolv
|
|
LDFLAGS.SunOS+= -lresolv
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-Werror-implicit-function-declaration
|
|
|
|
.include "options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mpython)
|
|
SUBST_CLASSES+= python
|
|
SUBST_STAGE.python= pre-configure
|
|
SUBST_MESSAGE.python= Adjusting pkg-config python checks
|
|
SUBST_FILES.python= configure.ac cmake/FindPython.cmake
|
|
SUBST_SED.python= -e 's,python3,python-${PYVERSSUFFIX},g'
|
|
.endif
|
|
|
|
pre-configure:
|
|
# Use the standard cmake mechanism for finding Lua.
|
|
${RM} -f ${WRKSRC}/cmake/FindLua.cmake
|
|
|
|
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../www/curl/buildlink3.mk"
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../security/gnutls/buildlink3.mk"
|
|
.include "../../security/libgcrypt/buildlink3.mk"
|
|
.include "../../mk/curses.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|