-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (25 loc) · 844 Bytes
/
Makefile
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
# Created by: vanilla@
PORTNAME= openswoole
PORTVERSION= 4.11.1
CATEGORIES= devel net
MAINTAINER= vanilla@FreeBSD.org
COMMENT= Asynchronous, concurrent, and distributed networking framework
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c11 localbase:ldflags php:pecl ssl
USE_PHP= hash:build pcre
CONFIGURE_ARGS+= --enable-mysqlnd
OPTIONS_DEFINE= CARES CURL HTTP2 JSON SOCKETS
CARES_LIB_DEPENDS= libcares.so:dns/c-ares
CARES_CONFIGURE_ON= --enable-cares
HTTP2_CONFIGURE_ON= --enable-http2 \
--enable-openssl
SOCKETS_USE= PHP=sockets:build
SOCKETS_DESC= Use native php sockets extension
SOCKETS_CONFIGURE_ON= --enable-sockets
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_CONFIGURE_ON= --enable-swoole-curl
CURL_USE= PHP=curl
JSON_CONFIGURE_ON= --enable-swoole-json
JSON_USE= PHP=json:build
.include <bsd.port.mk>