opnsense-ports/devel/pecl-swoole/Makefile

31 lines
789 B
Makefile

# Created by: vanilla@
# $FreeBSD$
PORTNAME= swoole
PORTVERSION= 4.4.0
CATEGORIES= devel net
MAINTAINER= vanilla@FreeBSD.org
COMMENT= Asynchronous & concurrent & 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 HTTP2 SOCKETS PGSQL
CARES_LIB_DEPENDS= libcares.so:dns/c-ares
CARES_CONFIGURE_ON= --enable-cares
HTTP2_LIB_DEPENDS= libnghttp2.so:www/libnghttp2
HTTP2_CONFIGURE_ON= --enable-http2 --enable-openssl
SOCKETS_USE= PHP=sockets:build
SOCKETS_DESC= Use native php sockets extension
SOCKETS_CONFIGURE_ON= --enable-sockets
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON= --enable-coroutine-postgresql
.include <bsd.port.mk>