aboutsummaryrefslogtreecommitdiff
path: root/devel/pecl-swoole/Makefile
blob: 69789775bf0ff3895094ff76c014957eb38273c7 (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
# Created by: vanilla@

PORTNAME=	swoole
PORTVERSION=	4.6.5
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=	HTTP2 SOCKETS JSON CURL
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
JSON_CONFIGURE_ON=	--enable-swoole-json
JSON_USE=	PHP=json:build

.include <bsd.port.mk>