blob: d667b0ae8ca4c862929b7e3fec9286178e2ed217 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Created by: Iblis Lin <iblis@hs.ntnu.edu.tw>
# $FreeBSD$
PORTNAME= libwebsockets
PORTVERSION= 2.0.2
DISTVERSIONPREFIX= v
CATEGORIES= net
MASTER_SITES= GITHUB
MAINTAINER= iblis@hs.ntnu.edu.tw
COMMENT= C library for lightweight websocket clients and servers
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= warmcat
PORTSCOUT= limit:^v\d+\.
USES= cmake pkgconfig ssl
USE_LDCONFIG= yes
CMAKE_ARGS= -DLWS_WITHOUT_TESTAPPS=ON \
-DLWS_WITHOUT_TEST_SERVER=ON \
-DLWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
-DLWS_WITHOUT_TEST_PING=ON \
-DLWS_WITHOUT_TEST_ECHO=ON \
-DLWS_WITHOUT_TEST_CLIENT=ON \
-DLWS_WITHOUT_TEST_FRAGGLE=ON
OPTIONS_DEFINE= HTTP2 HTTP_PROXY IPV6 LIBEV LIBUV UNIX_SOCK WEBSERVER
OPTIONS_SUB= yes
HTTP_PROXY_DESC= HTTP proxy support
LIBUV_DESC= Asynchronous I/O support via libuv
UNIX_SOCK_DESC= Unix domain socket support
HTTP2_CMAKE_ON= -DLWS_WITH_HTTP2=ON
HTTP_PROXY_CMAKE_ON= -DLWS_WITH_HTTP_PROXY=ON -DLIBHUBBUB_LIBRARIES=${PREFIX}/lib/libhubbub.so
HTTP_PROXY_LIB_DEPENDS= libhubbub.so:www/libhubbub
IPV6_CMAKE_ON= -DLWS_IPV6=ON
LIBEV_CMAKE_ON= -DLWS_WITH_LIBEV=ON
LIBEV_LIB_DEPENDS= libev.so:devel/libev
LIBUV_CMAKE_ON= -DLWS_WITH_LIBUV=ON
LIBUV_LIB_DEPENDS= libuv.so:devel/libuv
UNIX_SOCK_CMAKE_ON= -DLWS_UNIX_SOCK=ON
WEBSERVER_CMAKE_ON= -DLWS_WITH_LWSWS=ON
WEBSERVER_LIB_DEPENDS= libuv.so:devel/libuv
.include <bsd.port.mk>
|