43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
PORTNAME= dpp
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 10.1.3
|
|
CATEGORIES= www devel
|
|
#MASTER_SITES= https://github.com/brainboxdotcc/DPP/releases/download/v${DISTVERSION}/
|
|
PKGNAMESUFFIX= -discord
|
|
#DISTNAME= libdpp-${DISTVERSION}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= C++ Discord API bot library
|
|
WWW= https://dpp.dev/ \
|
|
https://github.com/brainboxdotcc/DPP
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
|
|
LIB_DEPENDS= libopus.so:audio/opus \
|
|
libsodium.so:security/libsodium
|
|
RUN_DEPENDS= nlohmann-json>0:devel/nlohmann-json
|
|
|
|
USES= cmake:testing compiler:c++20-lang localbase ssl
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= brainboxdotcc
|
|
GH_PROJECT= DPP
|
|
|
|
CMAKE_ON= DPP_USE_EXTERNAL_JSON \
|
|
DPP_NO_VCPKG
|
|
CMAKE_ON+= DPP_CORO # experimental support for C++20 coroutines
|
|
CMAKE_OFF= RUN_LDCONFIG DPP_BUILD_TEST
|
|
CMAKE_TESTING_ON= DPP_BUILD_TEST
|
|
CXXFLAGS+= -DDPP_USE_EXTERNAL_JSON # workaround for https://github.com/brainboxdotcc/DPP/issues/1324
|
|
|
|
MAKE_ENV= TEST_DATA_DIR=${WRKSRC}/testdata/ # only for tests
|
|
|
|
post-extract:
|
|
@${RM} -r ${WRKSRC}/include/dpp/nlohmann
|
|
|
|
# as of 10.1.3: 100% tests passed, 0 tests failed out of 1
|
|
|
|
.include <bsd.port.mk>
|