mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
238030b195
- While I'm here: - Remove leading indefinite article from COMMENT - Avoid INDEX breakage: - Check existence of ${LOCALBASE}/bin/php - PHP_ZTS defaults to disabled - Support STAGEDIR PR: ports/179565 Submitted by: John Chen <johnpupu@gmail.com> (maintainer)
37 lines
769 B
Makefile
37 lines
769 B
Makefile
# Created by: John Chen <johnpupu@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pthreads
|
|
PORTVERSION= 0.0.44
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://pecl.php.net/get/
|
|
PKGNAMEPREFIX= pecl-
|
|
EXTRACT_SUFX= .tgz
|
|
DIST_SUBDIR= PECL
|
|
|
|
MAINTAINER= johnpupu@gmail.com
|
|
COMMENT= Compatible Threading API for PHP5.3+
|
|
|
|
LICENSE= PHP301
|
|
|
|
USE_PHP= yes
|
|
USE_PHP_BUILD= yes
|
|
USE_PHPIZE= yes
|
|
USE_PHPEXT= yes
|
|
PHP_MODNAME= pthreads
|
|
IGNORE_WITH_PHP= 52
|
|
|
|
.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>
|