pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/php73 php73: Make php-embed a no-op for other tha...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0d48078c4787
branches:  trunk
changeset: 442267:0d48078c4787
user:      otis <otis%pkgsrc.org@localhost>
date:      Sat Nov 21 19:43:57 2020 +0000

description:
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:

 lang/php73/Makefile.php |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r d8a0b41ada66 -r 0d48078c4787 lang/php73/Makefile.php
--- a/lang/php73/Makefile.php   Sat Nov 21 19:42:25 2020 +0000
+++ b/lang/php73/Makefile.php   Sat Nov 21 19:43:57 2020 +0000
@@ -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 @@
 
 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 @@
        ${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"



Home | Main Index | Thread Index | Old Index