summaryrefslogtreecommitdiff
path: root/chat/hexchat/Makefile
blob: 1b215883bec9d42829926a9ae8c5c8cdedc310dc (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
# $NetBSD: Makefile,v 1.53 2021/05/24 19:49:13 wiz Exp $

DISTNAME=	hexchat-2.14.3
PKGREVISION=	9
CATEGORIES=	chat
MASTER_SITES=	https://dl.hexchat.net/hexchat/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://hexchat.github.io/
COMMENT=	IRC client based on XChat
LICENSE=	gnu-gpl-v2 AND gnu-lgpl-v2.1 AND mit

USE_TOOLS+=	pkg-config msgfmt xgettext

USE_LANGUAGES=	c c++

# XXX fails without GNU msgfmt
_TOOLS_USE_PKGSRC.msgfmt=	yes

MESON_ARGS+=		-Dwith-text=true
MESON_ARGS+=		-Dwith-appdata=false

REPLACE_PYTHON+=	plugins/perl/generate_header.py
REPLACE_PYTHON+=	src/common/make-te.py

OPSYSVARS+=		SOEXT
SOEXT.Darwin=		dylib
SOEXT.*=		so
PLIST_SUBST+=		SOEXT=${SOEXT}

LDFLAGS.SunOS+=		-lsocket -lnsl

PKGCONFIG_OVERRIDE+=	data/pkgconfig/hexchat-plugin.pc.in

.include "options.mk"
.include "../../devel/meson/build.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
# Whether Python is required strictly as a build tool or also at runtime is
# determined in options.mk, and PYTHON_FOR_BUILD_ONLY is set there, if needed.
.include "../../lang/python/tool.mk"
.include "../../textproc/iso-codes/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"