pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc unit-php: Obtain package options for PHP using pkg-bui...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/45b6009301de
branches:  trunk
changeset: 448571:45b6009301de
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Mar 10 16:35:16 2021 +0000

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

 lang/php73/buildlink3.mk |   5 ++++-
 lang/php74/buildlink3.mk |   5 ++++-
 lang/php80/buildlink3.mk |   4 +++-
 www/unit-php/Makefile    |  10 ++++------
 4 files changed, 15 insertions(+), 9 deletions(-)

diffs (87 lines):

diff -r 676ca39a396f -r 45b6009301de lang/php73/buildlink3.mk
--- a/lang/php73/buildlink3.mk  Wed Mar 10 16:08:28 2021 +0000
+++ b/lang/php73/buildlink3.mk  Wed Mar 10 16:35:16 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2020/11/05 09:06:58 ryoon Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2021/03/10 16:35:16 nia Exp $
 
 BUILDLINK_TREE+=       php
 
@@ -9,6 +9,9 @@
 BUILDLINK_ABI_DEPENDS.php+=    php>=7.3.24nb1
 BUILDLINK_PKGSRCDIR.php?=      ../../lang/php73
 
+pkgbase := php
+.include "../../mk/pkg-build-options.mk"
+
 .include "../../textproc/libxml2/buildlink3.mk"
 .endif # PHP_BUILDLINK3_MK
 
diff -r 676ca39a396f -r 45b6009301de lang/php74/buildlink3.mk
--- a/lang/php74/buildlink3.mk  Wed Mar 10 16:08:28 2021 +0000
+++ b/lang/php74/buildlink3.mk  Wed Mar 10 16:35:16 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.3 2020/11/05 09:06:58 ryoon Exp $
+# $NetBSD: buildlink3.mk,v 1.4 2021/03/10 16:35:17 nia Exp $
 
 BUILDLINK_TREE+=       php
 
@@ -9,6 +9,9 @@
 BUILDLINK_ABI_DEPENDS.php+=    php>=7.4.12nb1
 BUILDLINK_PKGSRCDIR.php?=      ../../lang/php74
 
+pkgbase := php
+.include "../../mk/pkg-build-options.mk"
+
 .include "../../textproc/libxml2/buildlink3.mk"
 .endif # PHP_BUILDLINK3_MK
 
diff -r 676ca39a396f -r 45b6009301de lang/php80/buildlink3.mk
--- a/lang/php80/buildlink3.mk  Wed Mar 10 16:08:28 2021 +0000
+++ b/lang/php80/buildlink3.mk  Wed Mar 10 16:35:16 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1 2021/03/07 13:41:36 taca Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2021/03/10 16:35:17 nia Exp $
 
 BUILDLINK_TREE+=       php
 
@@ -9,6 +9,8 @@
 BUILDLINK_ABI_DEPENDS.php+=    php>=8.0.0
 BUILDLINK_PKGSRCDIR.php?=      ../../lang/php80
 
+pkgbase := php
+.include "../../mk/pkg-build-options.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
 .endif # PHP_BUILDLINK3_MK
 
diff -r 676ca39a396f -r 45b6009301de www/unit-php/Makefile
--- a/www/unit-php/Makefile     Wed Mar 10 16:08:28 2021 +0000
+++ b/www/unit-php/Makefile     Wed Mar 10 16:35:16 2021 +0000
@@ -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 @@
 
 .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 @@
                                --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"



Home | Main Index | Thread Index | Old Index