pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/unit-php: check php-embed option was enabled when lang/php was built.



Module Name:	pkgsrc-wip
Committed By:	Sergey A. Osokin <osa%FreeBSD.org@localhost>
Pushed By:	osa
Date:		Tue Feb 16 19:19:18 2021 -0500
Changeset:	c5eb1512f9ef286871f9203a1f40bf5b327f32b8

Modified Files:
	unit-php/Makefile

Log Message:
wip/unit-php: check php-embed option was enabled when lang/php was built.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c5eb1512f9ef286871f9203a1f40bf5b327f32b8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 unit-php/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diffs:
diff --git a/unit-php/Makefile b/unit-php/Makefile
index 3a7c4523be..ba9dac570c 100644
--- a/unit-php/Makefile
+++ b/unit-php/Makefile
@@ -12,9 +12,10 @@ PHP_VERSIONS_ACCEPTED?=	56 72 73 74
 
 .include "../../lang/php/phpversion.mk"
 
-#.if empty(PKG_BUILD_OPTIONS.${PHP_PKG_PREFIX}:Mphp-embed)
-#BROKEN=		"Requires the php-embed option enabled in PHP."
-#.endif
+PHP_BUILD_OPTIONS!=	${PKG_INFO} -Bn php | ${GREP} PKG_OPTIONS
+.if empty(PHP_BUILD_OPTIONS:Mphp-embed)
+BROKEN=		"Requires the php-embed option enabled in PHP."
+.endif
 
 post-configure:
 	${RUN} cd ${WRKSRC} && ${SETENV} ${_CONFIGURE_SCRIPT_ENV}	\


Home | Main Index | Thread Index | Old Index