summaryrefslogtreecommitdiff
path: root/lang/php73
diff options
context:
space:
mode:
authorotis <otis@pkgsrc.org>2020-11-21 19:43:57 +0000
committerotis <otis@pkgsrc.org>2020-11-21 19:43:57 +0000
commit70f59513af2974897d56936d88b0d95342589db2 (patch)
treef47a3346a15e72f97786551cbbefb68f7124175b /lang/php73
parent836f41c9f7eba7ae0529c2da8b81ece3b6909159 (diff)
downloadpkgsrc-70f59513af2974897d56936d88b0d95342589db2.tar.gz
php73: Make php-embed a no-op for other than main php package
This avoids the situation when more than one SAPI is requested to build, which is unsupported (only one of fpm, filter, module) can be built at once.
Diffstat (limited to 'lang/php73')
-rw-r--r--lang/php73/Makefile.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/php73/Makefile.php b/lang/php73/Makefile.php
index a7553cf58ce..249845cd509 100644
--- a/lang/php73/Makefile.php
+++ b/lang/php73/Makefile.php
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.php,v 1.5 2020/11/20 15:34:11 otis Exp $
+# $NetBSD: Makefile.php,v 1.6 2020/11/21 19:43:57 otis Exp $
# used by lang/php73/Makefile
# used by www/ap-php/Makefile
# used by www/php-fpm/Makefile
@@ -112,6 +112,7 @@ CFLAGS+= -DDISABLE_FILTER_URL
PLIST_VARS+= embed
+.if !empty(PKGNAME:Mphp-[7-9]*)
.if !empty(PKG_OPTIONS:Mphp-embed)
CONFIGURE_ARGS+= --enable-embed
INSTALLATION_DIRS+= include/php/sapi/embed
@@ -123,6 +124,7 @@ post-install-embed:
${INSTALL_DATA} ${WRKSRC}/sapi/embed/php_embed.h ${DESTDIR}${PREFIX}/include/php/sapi/embed/
${INSTALL_LIB} ${WRKSRC}/libs/libphp7.so ${DESTDIR}${PREFIX}/lib/
.endif
+.endif
DL_AUTO_VARS= yes
.include "../../mk/dlopen.buildlink3.mk"