aboutsummaryrefslogtreecommitdiff
path: root/net-im/profanity/Makefile
blob: 7e17832ee5fe19ec1fd73ee80e7d6196a78e249d (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=	profanity
DISTVERSION=	0.14.0
PORTREVISION=	1
CATEGORIES=	net-im
MASTER_SITES=	https://profanity-im.github.io/tarballs/

MAINTAINER=	ashish@FreeBSD.org
COMMENT=	Console based XMPP client
WWW=		http://www.profanity.im/

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

LIB_DEPENDS=	libcurl.so:ftp/curl \
		libotr.so:security/libotr \
		libuuid.so:misc/e2fsprogs-libuuid \
		libgpgme.so:security/gpgme \
		libassuan.so:security/libassuan \
		libgpg-error.so:security/libgpg-error \
		libgcrypt.so:security/libgcrypt \
		libsignal-protocol-c.so:net/libsignal-protocol-c \
		libstrophe.so:net-im/libstrophe \
		libqrencode.so:graphics/libqrencode

USES=		cpe gnome libtool ncurses pkgconfig python \
		readline sqlite:3
CPE_VENDOR=	${PORTNAME}_project
GNU_CONFIGURE=	yes
USE_GNOME=	glib20
USE_LDCONFIG=	yes

INSTALL_TARGET=	install-strip

CONFIGURE_ARGS=	--enable-otr --enable-python-plugins --enable-c-plugins \
		--enable-pgp --disable-icons-and-clipboard \
		--without-xscreensaver --disable-gdk-pixbuf \
		--enable-omemo --enable-omemo-qrcode

OPTIONS_DEFINE=	NOTIFY

NOTIFY_LIB_DEPENDS=	libnotify.so:devel/libnotify
NOTIFY_CONFIGURE_ENABLE=notifications

post-patch:
	${REINPLACE_CMD} "s,python3-embed,python-${PYTHON_VER}-embed,g" \
		${WRKSRC}/configure

post-install:
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/man/man1 "-name *\.1"

.include <bsd.port.mk>