blob: ad217961003f8c5c6904cbff2dfe51c7edda167e (
plain)
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
|
# $FreeBSD$
PORTNAME= restbed
DISTVERSION= 4.6
PORTREVISION= 2
CATEGORIES= www
MAINTAINER= yuri@FreeBSD.org
COMMENT= Asynchronous RESTful functionality to C++11 applications
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++11-lib ssl
USE_GITHUB= yes
GH_ACCOUNT= Corvusoft
GH_TUPLE= Corvusoft:asio-dependency:f5c5708:a/dependency/asio \
Corvusoft:catch-dependency:8ebe94c:c/dependency/catch \
Corvusoft:kashmir-dependency:2f3913f:k/dependency/kashmir
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED
CMAKE_ARGS= -DCMAKE_INSTALL_LIBDIR:STRING=lib
do-test: # tests only pass when net.inet6.ip6.v6only=0, see pkg-message
@${ECHO_MSG} "===> Configuring tests in ${PKGNAME}"
@cd ${CONFIGURE_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH}
@${ECHO_MSG} "===> Building tests in ${PKGNAME}"
@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS}
@${ECHO_MSG} "===> Running tests in ${PKGNAME}"
@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>
|