diff options
author | nia <nia@pkgsrc.org> | 2021-03-10 16:35:16 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-03-10 16:35:16 +0000 |
commit | 0d1c1a1157f6d62f0aa318ce7444b73b4402b6fd (patch) | |
tree | f0133d72dbbf08261510bddb70e872506009d5c6 /www/unit-php | |
parent | 792ad5999071374b264ac85db06d92127ec02b55 (diff) | |
download | pkgsrc-0d1c1a1157f6d62f0aa318ce7444b73b4402b6fd.tar.gz |
unit-php: Obtain package options for PHP using pkg-build-options.mk
This should unbreak things that attempt to scan the pkgsrc tree without
building dependencies, as observed in morden.netbsd.org daily pkgsrc output
Diffstat (limited to 'www/unit-php')
-rw-r--r-- | www/unit-php/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/www/unit-php/Makefile b/www/unit-php/Makefile index d0bc97413a5..e4da59145eb 100644 --- a/www/unit-php/Makefile +++ b/www/unit-php/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2021/02/27 20:58:26 otis Exp $ +# $NetBSD: Makefile,v 1.5 2021/03/10 16:35:17 nia Exp $ PKGNAME= unit-${LANG}${PHP_VERSION:R:S|.||g}-${UNIT_VERSION} COMMENT= PHP module for NGINX Unit @@ -12,11 +12,6 @@ PHP_VERSIONS_ACCEPTED?= 56 73 74 .include "../../lang/php/phpversion.mk" -PHP_BUILD_OPTIONS!= ${RUN} ${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} \ ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} \ @@ -25,6 +20,9 @@ post-configure: --module=${MODNAME} .include "${PHPPKGSRCDIR}/buildlink3.mk" +.if empty(PKG_BUILD_OPTIONS.php:Mphp-embed) +BROKEN= "Requires the php-embed option enabled in PHP." +.endif .include "../../www/unit/ext.mk" .include "../../www/unit/Makefile.common" .include "../../mk/bsd.pkg.mk" |