blob: f2febfe353115be954ee994aa04e26e7e9718017 (
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
|
PORTNAME= libdatachannel
DISTVERSIONPREFIX= v
DISTVERSION= 0.24.0
CATEGORIES= www
MAINTAINER= yuri@FreeBSD.org
COMMENT= WebRTC Data Channels, WebRTC Media Transport, and WebSockets library
WWW= https://github.com/paullouisageneau/libdatachannel
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libsrtp2.so:net/libsrtp2
USES= cmake compiler:c++17-lang ssl
USE_GITHUB= yes
GH_ACCOUNT= paullouisageneau
GH_TUPLE= SergiusTheBest:plog:94899e0:SergiusTheBest_plog/deps/plog \
sctplab:usrsctp:fec583d:sctplab_usrsctp/deps/usrsctp \
paullouisageneau:libjuice:5948a41:paullouisageneau_libjuice/deps/libjuice \
nlohmann:json:55f9368:nlohmann_json/deps/json \
cisco:libsrtp:ee1a77c:cisco_libsrtp/deps/libsrtp
CMAKE_ON= USE_SYSTEM_SRTP NO_EXAMPLES NO_TESTS
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD
CFLAGS+= -Wno-error=unused-but-set-variable \
-Wno-error=strict-prototypes
.endif
do-test: # tests require dual stack to be enabled with 'sysctl net.inet6.ip6.v6only=0', at least one test is known to fail
# tests fail (intermittently?): https://github.com/paullouisageneau/libdatachannel/issues/682
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DNO_TESTS:BOOL=OFF ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
./tests-${DISTVERSION:C/-.*//}
# installs lib/libjuice.a and lib/libusrsctp.a that would conflict with separately installed packages juice and usrsctp, see https://github.com/paullouisageneau/libdatachannel/issues/1277
# tests as of 0.24.0: Finished 12 tests in 38s (38025 ms). Succeeded: 12. Failed: 0.
.include <bsd.port.post.mk>
|