Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2019 12:29:13 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r500483 - head/devel/pecl-pthreads
Message-ID:  <201904301229.x3UCTDjA013001@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904301229.x3UCTDjA013001>