438337a460
Changes: https://pecl.php.net/package-changelog.php?package=pthreads PR: 220642 Submitted by: <amistry@am-productions.biz> Approved by: John Chen <johnpupu@gmail.com> (maintainer)
30 lines
636 B
Makefile
30 lines
636 B
Makefile
# Created by: John Chen <johnpupu@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pthreads
|
|
PORTVERSION= 3.1.6
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= johnpupu@gmail.com
|
|
COMMENT= Compatible Threading API for PHP7.0+
|
|
|
|
LICENSE= PHP301
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
USES= php:pecl
|
|
IGNORE_WITH_PHP=56 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>
|