Index: head/devel/pecl-pthreads/Makefile =================================================================== --- head/devel/pecl-pthreads/Makefile (revision 500482) +++ head/devel/pecl-pthreads/Makefile (revision 500483) @@ -1,30 +1,26 @@ # Created by: John Chen # $FreeBSD$ PORTNAME= pthreads PORTVERSION= 3.1.6 CATEGORIES= devel MAINTAINER= joneum@FreeBSD.org COMMENT= Compatible Threading API for PHP7.0+ LICENSE= PHP301 CFLAGS+= -I${LOCALBASE}/include USES= php:pecl IGNORE_WITH_PHP= 71 -.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 +# We cannot use IGNORE here, the package gets ignored anyway because the +# ignore'd status is checked without any dependency installed. +pre-configure: + @if ! ${LOCALBASE}/bin/php -r 'phpinfo();' | ${GREP} -q 'Thread Safety => enabled'; then \ + ${ECHO_MSG} "===> ${PKGNAME} pthreads requires ZTS, please re-compile PHP with ZTS enabled." | ${FMT_80} ; \ + false ; \ + fi .include