svn commit: r500483 - head/devel/pecl-pthreads
Mathieu Arnold
mat at FreeBSD.org
Tue Apr 30 12:29:13 UTC 2019
Author: mat
Date: Tue Apr 30 12:29:12 2019
New Revision: 500483
URL: https://svnweb.freebsd.org/changeset/ports/500483
Log:
Try to allow building packages when PHP has ZTS enabled.
We cannot use IGNORE here, the package gets ignored anyway because the
ignore'd status is checked without any dependency installed.
Modified:
head/devel/pecl-pthreads/Makefile (contents, props changed)
Modified: head/devel/pecl-pthreads/Makefile
==============================================================================
--- head/devel/pecl-pthreads/Makefile Tue Apr 30 12:18:10 2019 (r500482)
+++ head/devel/pecl-pthreads/Makefile Tue Apr 30 12:29:12 2019 (r500483)
@@ -15,16 +15,12 @@ CFLAGS+= -I${LOCALBASE}/include
USES= php:pecl
IGNORE_WITH_PHP= 71
-.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
+# 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 <bsd.port.mk>
More information about the svn-ports-all
mailing list