1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/net-im/nheko/Makefile
Tobias Kortkamp 20747450f4 devel/libfmt: Update to 6.0.0
While here
- Normalize CMAKE_ARGS, USES=compiler:c++11-lib
- Pet portfmt
- Bump revision of consumers due to ABI changes

Changes:	https://github.com/fmtlib/fmt/releases/tag/6.0.0
ABI:		https://abi-laboratory.pro/tracker/timeline/fmt/
PR:		240141
2019-09-01 06:12:37 +00:00

53 lines
1.6 KiB
Makefile

# $FreeBSD$
PORTNAME= nheko
DISTVERSIONPREFIX=v
DISTVERSION= 0.6.4
PORTREVISION= 3
CATEGORIES= net-im
MAINTAINER= adridg@FreeBSD.org
COMMENT= Matrix IM client based on Qt technologies
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= mtxclient>=0.2.1:net-im/mtxclient \
nlohmann-json>=3:devel/nlohmann-json \
spdlog>=1.3:devel/spdlog
LIB_DEPENDS= liblmdb.so:databases/lmdb \
libsodium.so:security/libsodium \
libolm.so:security/olm \
libcmark.so:textproc/cmark
USES= cmake compiler:c++17-lang pkgconfig \
localbase:ldflags qt:5 tar:xz
USE_QT= concurrent core dbus declarative gui multimedia network 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.
CMAKE_ARGS= -DLMDBXX_INCLUDE_DIR=${WRKSRC}/deps/lmdb \
-DTWEENY_INCLUDE_DIR=${WRKSRC}/deps/tweeny
USE_GITHUB= yes
GH_ACCOUNT= Nheko-Reborn
GH_TUPLE= drycpp:lmdbxx:0b43ca87d8cfabba392dfe884eb1edb83874de02:lmdb/deps/lmdb \
mobius3:tweeny:v3: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>