svn commit: r338065 - head/devel/pecl-pthreads

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Mon Dec 30 09:12:34 UTC 2013


Author: sunpoet
Date: Mon Dec 30 09:12:33 2013
New Revision: 338065
URL: http://svnweb.freebsd.org/changeset/ports/338065

Log:
  - Fix PHP Thread-Safe problem
  - 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 at gmail.com> (maintainer)

Modified:
  head/devel/pecl-pthreads/Makefile

Modified: head/devel/pecl-pthreads/Makefile
==============================================================================
--- head/devel/pecl-pthreads/Makefile	Mon Dec 30 09:08:13 2013	(r338064)
+++ head/devel/pecl-pthreads/Makefile	Mon Dec 30 09:12:33 2013	(r338065)
@@ -10,7 +10,7 @@ EXTRACT_SUFX=	.tgz
 DIST_SUBDIR=	PECL
 
 MAINTAINER=	johnpupu at gmail.com
-COMMENT=	A compatible Threading API for PHP5.3+
+COMMENT=	Compatible Threading API for PHP5.3+
 
 LICENSE=	PHP301
 
@@ -21,5 +21,16 @@ USE_PHPEXT=	yes
 PHP_MODNAME=	pthreads
 IGNORE_WITH_PHP=	52
 
-NO_STAGE=	yes
+.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>


More information about the svn-ports-all mailing list