aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/mtxclient/Makefile
blob: f58530b03242cf2ed4415061449910741a9e0605 (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
# $FreeBSD$

PORTNAME=       mtxclient
DISTVERSIONPREFIX=  v
DISTVERSION=        0.2.0
PORTREVISION=       1
CATEGORIES=     net-im

PATCH_SITES=    https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= cdbf06f341e9.patch:-p1

MAINTAINER= adridg@FreeBSD.org
COMMENT=    Client API library for the Matrix protocol

LICENSE=    MIT
LICENSE_FILES=  ${WRKSRC}/LICENSE

BUILD_DEPENDS=  nlohmann-json>=3:devel/nlohmann-json \
        spdlog>=1.3:devel/spdlog \
        gtest-config: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_random.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++11-lang pkgconfig \
        localbase:ldflags 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>