aboutsummaryrefslogtreecommitdiff
path: root/net-im/nheko/Makefile
blob: 4b76d9a1e9cef688457464e8012f0e4cf7b3c22f (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
PORTNAME=	nheko
DISTVERSIONPREFIX=v
DISTVERSION=	0.10.0
PORTREVISION=	1
CATEGORIES=	net-im

MAINTAINER=	adridg@FreeBSD.org
COMMENT=	Matrix IM client based on Qt technologies

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	nlohmann-json>=3:devel/nlohmann-json \
		asciidoc>=10:textproc/asciidoc
# All those boost-libs are pulled in through mtxclient, which
# links to them but stage-qa still complains.
LIB_DEPENDS=	\
		libcmark.so:textproc/cmark \
		libcoeurl.so:ftp/coeurl \
		libfmt.so:devel/libfmt \
		liblmdb.so:databases/lmdb \
		libmatrix_client.so:net-im/mtxclient \
		libolm.so:security/olm \
		libqt5keychain.so:security/qtkeychain \
		libspdlog.so:devel/spdlog

USES=		cmake compiler:c++17-lang desktop-file-utils \
		localbase:ldflags pkgconfig qt:5 ssl tar:xz
USE_QT=		concurrent core dbus declarative gui multimedia network \
		quickcontrols2 svg widgets \
		graphicaleffects_run \
		buildtools_build linguist_build qmake_build

# There is one external dependency: lmdb++
#  - lmdb++ is a single header file, it just needs to be included
CMAKE_ARGS=	-DLMDBXX_INCLUDE_DIR=${WRKSRC}/deps/lmdb \
		-DVOIP=OFF \
		-DCMAKE_INSTALL_MANDIR=share/man
CFLAGS+=	-DSPDLOG_FMT_EXTERNAL=1
LDFLAGS+=	-L${LOCALBASE}/lib -lfmt

USE_GITHUB=	yes
GH_ACCOUNT=	Nheko-Reborn
GH_TUPLE=	hoytech:lmdbxx:029fb681213af3020f5e3a86045445552bd024c5:lmdb/deps/lmdb

.include <bsd.port.mk>