Lines 1-7
Link Here
|
1 |
PORTNAME= restinio |
1 |
PORTNAME= restinio |
2 |
DISTVERSIONPREFIX= v. |
|
|
3 |
DISTVERSION= 0.6.17 |
2 |
DISTVERSION= 0.6.17 |
4 |
CATEGORIES= www devel |
3 |
CATEGORIES= www devel |
|
|
4 |
MASTER_SITES= https://github.com/Stiffstream/${PORTNAME}/releases/download/v.${DISTVERSION}/ |
5 |
DISTNAME= ${PORTNAME}-${DISTVERSION}-full |
5 |
|
6 |
|
6 |
MAINTAINER= yuri@FreeBSD.org |
7 |
MAINTAINER= yuri@FreeBSD.org |
7 |
COMMENT= Asynchronous HTTP/WebSocket server C++14 library |
8 |
COMMENT= Asynchronous HTTP/WebSocket server C++14 library |
Lines 10-35
WWW= https://stiffstream.com/en/products/restinio.html
Link Here
|
10 |
LICENSE= BSD3CLAUSE |
11 |
LICENSE= BSD3CLAUSE |
11 |
LICENSE_FILE= ${WRKSRC}/../LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/../LICENSE |
12 |
|
13 |
|
13 |
BUILD_DEPENDS= asio>0:net/asio \ |
14 |
BUILD_DEPENDS= libfmt>0:devel/libfmt \ |
14 |
libfmt>0:devel/libfmt \ |
|
|
15 |
sobjectizer>0:devel/sobjectizer |
15 |
sobjectizer>0:devel/sobjectizer |
16 |
LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ |
16 |
LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ |
17 |
libhttp_parser.so:www/http-parser \ |
17 |
libhttp_parser.so:www/http-parser \ |
18 |
libpcre2-8.so:devel/pcre2 |
18 |
libpcre2-8.so:devel/pcre2 |
19 |
RUN_DEPENDS= asio>0:net/asio \ |
19 |
RUN_DEPENDS= libfmt>0:devel/libfmt \ |
20 |
libfmt>0:devel/libfmt \ |
|
|
21 |
sobjectizer>0:devel/sobjectizer |
20 |
sobjectizer>0:devel/sobjectizer |
22 |
|
21 |
|
23 |
USES= cmake:testing compiler:c++14-lang localbase:ldflags |
22 |
USES= cmake:testing compiler:c++14-lang localbase:ldflags tar:bz2 |
24 |
|
|
|
25 |
USE_GITHUB= yes |
26 |
GH_ACCOUNT= Stiffstream |
27 |
GH_TUPLE= catchorg:Clara:2bfd8b2:clara |
28 |
|
23 |
|
|
|
24 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} |
29 |
WRKSRC_SUBDIR= dev |
25 |
WRKSRC_SUBDIR= dev |
30 |
|
26 |
|
31 |
CXXFLAGS+= -I${WRKSRC_clara}/include |
27 |
CMAKE_ARGS= -DRESTINIO_USE_BOOST_ASIO=shared |
32 |
|
|
|
33 |
CMAKE_ON= RESTINIO_FIND_DEPS RESTINIO_USE_EXTERNAL_HTTP_PARSER RESTINIO_USE_EXTERNAL_SOBJECTIZER |
28 |
CMAKE_ON= RESTINIO_FIND_DEPS RESTINIO_USE_EXTERNAL_HTTP_PARSER RESTINIO_USE_EXTERNAL_SOBJECTIZER |
34 |
CMAKE_OFF= RESTINIO_BENCH RESTINIO_INSTALL_BENCHES RESTINIO_TEST |
29 |
CMAKE_OFF= RESTINIO_BENCH RESTINIO_INSTALL_BENCHES RESTINIO_TEST |
35 |
CMAKE_TESTING_ON= RESTINIO_TEST |
30 |
CMAKE_TESTING_ON= RESTINIO_TEST |
Lines 39-46
OPTIONS_SUB= yes
Link Here
|
39 |
|
34 |
|
40 |
SAMPLES_DESC= Build and install samples |
35 |
SAMPLES_DESC= Build and install samples |
41 |
SAMPLES_USES= ssl |
36 |
SAMPLES_USES= ssl |
|
|
37 |
SAMPLES_CXXFLAGS+= -I${WRKSRC}/clara |
42 |
SAMPLES_CMAKE_BOOL= RESTINIO_SAMPLE RESTINIO_INSTALL_SAMPLES |
38 |
SAMPLES_CMAKE_BOOL= RESTINIO_SAMPLE RESTINIO_INSTALL_SAMPLES |
43 |
SAMPLES_VARS_OFF= NO_ARCH=yes |
39 |
SAMPLES_VARS_OFF= NO_ARCH=yes |
44 |
SAMPLES_BUILD_DEPENDS= json-dto>0:devel/json-dto |
40 |
SAMPLES_BUILD_DEPENDS= json-dto>0:devel/json-dto |
45 |
|
41 |
|
|
|
42 |
post-extract: |
43 |
${RM} -rf ${WRKSRC}/asio |
44 |
${RM} -rf ${WRKSRC}/asio_mxxru |
45 |
${RM} -rf ${WRKSRC}/catch2 |
46 |
${RM} -rf ${WRKSRC}/fmt |
47 |
${RM} -rf ${WRKSRC}/fmt_mxxru |
48 |
${RM} -rf ${WRKSRC}/nodejs/http_parser/http-parser.* |
49 |
${RM} -rf ${WRKSRC}/nodejs/http_parser_mxxru |
50 |
${RM} -rf ${WRKSRC}/rapidjson |
51 |
${RM} -rf ${WRKSRC}/rapidjson_mxxru |
52 |
${RM} -rf ${WRKSRC}/so_5 |
53 |
${RM} -rf ${WRKSRC}/timertt |
54 |
|
46 |
.include <bsd.port.mk> |
55 |
.include <bsd.port.mk> |