1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/devel/pecl-pthreads2/Makefile
Sunpoet Po-Chuan Hsieh 49c5468ae9 Readd devel/pecl-pthreads2 (r445699)
PR:		220708
2017-07-22 15:52:28 +00:00

34 lines
677 B
Makefile

# Created by: John Chen <johnpupu@gmail.com>
# $FreeBSD$
PORTNAME= pthreads
PORTVERSION= 2.0.10
CATEGORIES= devel
PKGNAMESUFFIX= 2
MAINTAINER= johnpupu@gmail.com
COMMENT= Compatible Threading API for PHP5.3+
LICENSE= PHP301
PORTSCOUT= limit:^2\.
CFLAGS+= -I${LOCALBASE}/include
USES= php:pecl
IGNORE_WITH_PHP=70 71
.include <bsd.port.options.mk>
.if !defined(PHP_ZTS) && exists(${LOCALBASE}/bin/php)
PHP_ZTS!= ${LOCALBASE}/bin/php -r 'phpinfo();' | ${GREP} 'Thread Safety' | ${AWK} -F '=> ' '{print $$2}'
.else
PHP_ZTS= disabled
.endif
.if ${PHP_ZTS} == "disabled"
IGNORE= pthreads requires ZTS, please re-compile PHP with ZTS enabled
.endif
.include <bsd.port.mk>