summaryrefslogtreecommitdiff
path: root/chat/hexchat/Makefile
blob: 9dc8ac12182a84cdbfb0d0b3e3704c031373e63b (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
# $NetBSD: Makefile,v 1.25 2018/04/16 14:34:13 wiz Exp $

DISTNAME=	hexchat-2.14.1
PKGREVISION=	1
CATEGORIES=	chat
MASTER_SITES=	http://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_LIBTOOL=	yes
USE_TOOLS+=	bison gmake intltool msgfmt msgmerge pkg-config xgettext
USE_LANGUAGES=	c c++

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

# XXX fails without GNU msgfmt
_TOOLS_USE_PKGSRC.msgfmt=	yes

.include "options.mk"

MESON_ARGS+=		-Dwith-text=true

# XXX meson
PYTHON_VERSIONS_INCOMPATIBLE=	27
.if empty(PKG_OPTIONS:Mpython)
PYTHON_FOR_BUILD_ONLY=	yes
.endif
.include "../../lang/python/pyversion.mk"
REPLACE_PYTHON+=	plugins/perl/generate_header.py
REPLACE_PYTHON+=	src/common/make-te.py
REPLACE_PYTHON+=	meson_post_install.py

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

.include "../../devel/py-meson/build.mk"
.include "../../textproc/iso-codes/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"