pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/php



Module Name:    pkgsrc
Committed By:   taca
Date:           Sun Mar  7 13:20:56 UTC 2021

Added Files:
        pkgsrc/lang/php: json.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/php/json.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/lang/php/json.mk
diff -u /dev/null pkgsrc/lang/php/json.mk:1.1
--- /dev/null   Sun Mar  7 13:20:56 2021
+++ pkgsrc/lang/php/json.mk     Sun Mar  7 13:20:56 2021
@@ -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