mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
4e3bd299a3
These two go together quite closely. Release notes at https://github.com/Nheko-Reborn/mtxclient/releases/tag/v0.3.0 https://github.com/Nheko-Reborn/nheko/releases/tag/v0.7.0 Mostly more features for rich-IM purposes. Fighting with the nheko build shows me we rather need a port for lmdb++ and tweeny. Reported by: portscout
66 lines
2.2 KiB
Makefile
66 lines
2.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= nheko
|
|
DISTVERSIONPREFIX=v
|
|
DISTVERSION= 0.7.0
|
|
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
|
|
# All those boost-libs are pulled in through mtxclient, which
|
|
# links to them but stage-qa still complains.
|
|
LIB_DEPENDS= liblmdb.so:databases/lmdb \
|
|
libfmt.so:devel/libfmt \
|
|
libmatrix_client.so:net-im/mtxclient \
|
|
libsodium.so:security/libsodium \
|
|
libolm.so:security/olm \
|
|
libcmark.so:textproc/cmark \
|
|
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 \
|
|
libspdlog.so:devel/spdlog
|
|
|
|
USES= cmake compiler:c++17-lang pkgconfig \
|
|
localbase:ldflags qt:5 ssl tar:xz
|
|
USE_QT= concurrent core dbus declarative gui multimedia network \
|
|
quickcontrols2 svg widgets \
|
|
buildtools_build linguist_build qmake_build
|
|
|
|
# There are two external dependencies: lmdb++ and tweeny.
|
|
# - lmdb++ is a single header file, it just needs to be included
|
|
# - tweeny is a library, but only one header is needed; it is normally
|
|
# installed into a tweeny/ subdirectory, but its sources place it
|
|
# in include/. Add one more symlink to the build for that.
|
|
# We don't actually use the bundled versions, we get them via
|
|
# the ports system (see GH_TUPLE, below).
|
|
CMAKE_ARGS= -DLMDBXX_INCLUDE_DIR=${WRKSRC}/deps/lmdb \
|
|
-DTWEENY_INCLUDE_DIR=${WRKSRC}/deps/tweeny/include \
|
|
CFLAGS+= -DSPDLOG_FMT_EXTERNAL=1
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lfmt
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= Nheko-Reborn
|
|
GH_TUPLE= drycpp:lmdbxx:0b43ca87d8cfabba392dfe884eb1edb83874de02:lmdb/deps/lmdb \
|
|
mobius3:tweeny:6a5033372fe53c4c731c66c8a2d56261746cd85c:tweeny/deps/tweeny
|
|
|
|
post-extract:
|
|
cd ${WRKSRC}/deps/tweeny && ${LN} -s include tweeny
|
|
|
|
# Includes <json.hpp> without referencing where it's installed,
|
|
# so hackishly correct all the broken paths.
|
|
post-patch:
|
|
${FIND} ${WRKSRC} -type f -print0 | \
|
|
${XARGS} -0 ${REINPLACE_CMD} \
|
|
-e 's+include <json.hpp>+include <nlohmann/json.hpp>+' \
|
|
-e 's+include "json.hpp"+include <nlohmann/json.hpp>+'
|
|
|
|
.include <bsd.port.mk>
|