summaryrefslogtreecommitdiff
path: root/irc/irssi/Makefile
blob: e2e8214d1d6bdfebd981155a481fa1dfaca34f30 (plain) (blame)
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
PORTNAME=	irssi
DISTVERSION=	1.4.5
PORTREVISION=	1
PORTEPOCH=	2
CATEGORIES?=	irc
MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/ \
		https://codeberg.org/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/

MAINTAINER=	dor.bsd@xm0.uk
COMMENT=	Modular IRC client with many features
WWW=		https://irssi.org/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		compiler:c11 cpe gettext-runtime gnome meson localbase:ldflags \
		ncurses perl5 pkgconfig ssl tar:xz
USE_GNOME=	glib20
USE_LDCONFIG=	yes

MESON_ARGS=	-Dinstall-glib=no -Ddisable-gregex=no -Dstatic-dependency=no \
		-Dwith-fuzzer=no -Dwithout-textui=no

OPTIONS_DEFINE=		BOT CAPSICUM DOCS OTR PERL PROXY UTF8PROC
OPTIONS_DEFAULT=	BOT CAPSICUM PERL PROXY
OPTIONS_SUB=		yes

BOT_DESC=		Bot support
CAPSICUM_DESC=		Capsicum support
OTR_DESC=		OTR (off-the-record) support
UTF8PROC_DESC=		utf8proc support

BOT_MESON_YES=		with-bot
CAPSICUM_MESON_YES=	with-capsicum
OTR_LIB_DEPENDS=	libgcrypt.so:security/libgcrypt \
			libotr.so:security/libotr
OTR_MESON_YES=		with-otr
PERL_MESON_YES=		with-perl
PROXY_MESON_YES=	with-proxy
UTF8PROC_LIB_DEPENDS=	libutf8proc.so:textproc/utf8proc
UTF8PROC_MESON_NO=	disable-utf8proc

PERL_USE_OFF=		perl5=build

post-install-PERL-off:
	@${RM} -r ${STAGEDIR}${DATADIR}/scripts

post-install:
	${INSTALL_DATA} ${WRKSRC}/irssi.conf ${STAGEDIR}${PREFIX}/etc/irssi.conf.sample

.include <bsd.port.mk>