summaryrefslogtreecommitdiff
path: root/chat/weechat/Makefile
blob: 28df578a80c78a3d3ff0235b394c8cfa8b79be86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $NetBSD: Makefile,v 1.122 2021/04/21 07:44:13 nia Exp $

DISTNAME=	weechat-3.1
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

TOOL_DEPENDS+=	asciidoc-[0-9]*:../../textproc/asciidoc

USE_TOOLS+=	msgfmt pkg-config
USE_LANGUAGES=	c99
USE_CMAKE=	yes
FAKE_NCURSES=	yes

CMAKE_ARGS+=	-DCA_FILE=${PREFIX}/share/mozilla-rootcerts/cacert.pem
CMAKE_ARGS+=	-DENABLE_GUILE=OFF
CMAKE_ARGS+=	-DENABLE_TCL=OFF
CMAKE_ARGS+=	-DENABLE_MAN=OFF # Requires ascii-doctor
CMAKE_ARGS+=	-DENABLE_JAVASCRIPT=OFF
CMAKE_ARGS+=	-DENABLE_PHP=OFF
CMAKE_ARGS+=	-DENABLE_SPELL=OFF
CMAKE_ARGS+=	-DLOCALEDIR=${PKGLOCALEDIR}/locale
CMAKE_ARGS+=	-DENABLE_CHARSET=ON

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=	Adjust 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"