From owner-svn-ports-head@FreeBSD.ORG Mon Dec 30 09:12:33 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ECBD1E87; Mon, 30 Dec 2013 09:12:33 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D86BA1820; Mon, 30 Dec 2013 09:12:33 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBU9CXWm040988; Mon, 30 Dec 2013 09:12:33 GMT (envelope-from sunpoet@svn.freebsd.org) Received: (from sunpoet@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBU9CXJb040987; Mon, 30 Dec 2013 09:12:33 GMT (envelope-from sunpoet@svn.freebsd.org) Message-Id: <201312300912.rBU9CXJb040987@svn.freebsd.org> From: Sunpoet Po-Chuan Hsieh Date: Mon, 30 Dec 2013 09:12:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r338065 - head/devel/pecl-pthreads X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2013 09:12:34 -0000 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 (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@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 + +.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