blob: 500b3a14c11094b9dca6cccf09f6cffd7948b139 (
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
|
# $FreeBSD$
PORTNAME= mtxclient
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.0
PORTREVISION= 1
CATEGORIES= net-im
MAINTAINER= adridg@FreeBSD.org
COMMENT= Client API library for the Matrix protocol
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= nlohmann-json>=3:devel/nlohmann-json \
spdlog>=1.3:devel/spdlog \
googletest>0:devel/googletest
LIB_DEPENDS= libsodium.so:security/libsodium \
libboost_date_time.so:devel/boost-libs \
libboost_chrono.so:devel/boost-libs \
libboost_iostreams.so:devel/boost-libs \
libboost_regex.so:devel/boost-libs \
libboost_system.so:devel/boost-libs \
libboost_thread.so:devel/boost-libs \
libolm.so:security/olm
USES= cmake compiler:c++17-lang pkgconfig ssl \
tar:xz
USE_GITHUB= yes
GH_ACCOUNT= Nheko-Reborn
# 71 files use #include <json.hpp>, which needs to be
# elsewhere; an alternative would be to bung in -I${LOCALBASE}/include/nlohmann
post-patch:
${FIND} ${WRKSRC} -type f -print0 | \
${XARGS} -0 ${REINPLACE_CMD} \
's+include <json.hpp>+include <nlohmann/json.hpp>+'
.include <bsd.port.mk>
|