pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/php lang/php: add support for php-json
details: https://anonhg.NetBSD.org/pkgsrc/rev/b05efb02562e
branches: trunk
changeset: 448326:b05efb02562e
user: taca <taca%pkgsrc.org@localhost>
date: Sun Mar 07 13:20:56 2021 +0000
description:
lang/php: add support for php-json
Add code frament for supporting php-json.
With forthcoming php80, php-json will not separate package from php80 since
PHP 8 always build json extension in it.
diffstat:
lang/php/json.mk | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r 8475737e7840 -r b05efb02562e lang/php/json.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php/json.mk Sun Mar 07 13:20:56 2021 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: json.mk,v 1.1 2021/03/07 13:20:56 taca Exp $
+
+#
+# Suport for dependency to php-json which contains base php package
+# from PHP 8.0 and later.
+#
+
+.if !defined(PHP_JSON_MK)
+PHP_JSON_MK:= # empty
+
+.include "../../lang/php/phpversion.mk"
+
+.if ${PKG_PHP_MAJOR_VERS} < 8
+DEPENDS+= ${PHP_PKG_PREFIX}-json>=${PHP_BASE_VERS}:../../textproc/php-json
+.else
+.include "${PHPPKGSRCDIR}/buildlink3.mk"
+.endif
+
+.endif # PHP_JSON_MK
Home |
Main Index |
Thread Index |
Old Index