30 lines
790 B
Makefile
30 lines
790 B
Makefile
# Created by: vanilla@
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= swoole
|
|
PORTVERSION= 4.2.13
|
|
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>
|