freebsd-ports/devel/pecl-pthreads/Makefile
Sunpoet Po-Chuan Hsieh 63a8b3a1f0 - Update to 2.0.7
Changes:	http://pecl.php.net/package-changelog.php?package=pthreads
PR:		ports/189723
Submitted by:	John Chen <johnpupu@gmail.com> (maintainer)
2014-05-13 14:34:52 +00:00

37 lines
777 B
Makefile

# Created by: John Chen <johnpupu@gmail.com>
# $FreeBSD$
PORTNAME= pthreads
PORTVERSION= 2.0.7
CATEGORIES= devel
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
DIST_SUBDIR= PECL
MAINTAINER= johnpupu@gmail.com
COMMENT= Compatible Threading API for PHP5.3+
LICENSE= PHP301
CFLAGS+= -I${LOCALBASE}/include
USE_PHP= yes
USE_PHP_BUILD= yes
USE_PHPIZE= yes
USE_PHPEXT= yes
PHP_MODNAME= pthreads
USES= tar:tgz
.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>