mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
49c5468ae9
PR: 220708
34 lines
677 B
Makefile
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>
|