Changeset View
Changeset View
Standalone View
Standalone View
devel/pecl-pthreads/Makefile
Show All 9 Lines | |||||
MAINTAINER= johnpupu@gmail.com | MAINTAINER= johnpupu@gmail.com | ||||
COMMENT= Compatible Threading API for PHP5.3+ | COMMENT= Compatible Threading API for PHP5.3+ | ||||
LICENSE= PHP301 | LICENSE= PHP301 | ||||
CFLAGS+= -I${LOCALBASE}/include | CFLAGS+= -I${LOCALBASE}/include | ||||
USE_PHP= yes | USES= php:ext tar:tgz | ||||
USE_PHP_BUILD= yes | |||||
USE_PHPIZE= yes | |||||
USE_PHPEXT= yes | |||||
PHP_MODNAME= pthreads | |||||
USES= tar:tgz | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if !defined(PHP_ZTS) && exists(${LOCALBASE}/bin/php) | .if !defined(PHP_ZTS) && exists(${LOCALBASE}/bin/php) | ||||
PHP_ZTS!= ${LOCALBASE}/bin/php -r 'phpinfo();' | ${GREP} 'Thread Safety' | ${AWK} -F '=> ' '{print $$2}' | PHP_ZTS!= ${LOCALBASE}/bin/php -r 'phpinfo();' | ${GREP} 'Thread Safety' | ${AWK} -F '=> ' '{print $$2}' | ||||
.else | .else | ||||
PHP_ZTS= disabled | PHP_ZTS= disabled | ||||
.endif | .endif | ||||
.if ${PHP_ZTS} == "disabled" | .if ${PHP_ZTS} == "disabled" | ||||
IGNORE= pthreads requires ZTS, please re-compile PHP with ZTS enabled | IGNORE= pthreads requires ZTS, please re-compile PHP with ZTS enabled | ||||
.endif | .endif | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |