diff options
author | taca <taca@pkgsrc.org> | 2021-03-07 13:20:56 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2021-03-07 13:20:56 +0000 |
commit | ed2819d435f552a7f12f802250469875ca763f9f (patch) | |
tree | 808661a5ad1393bb898cf17b202eec47b5e25d69 /lang/php | |
parent | 9b927dc371a6e1ade7a0fb38d901e0856676efd4 (diff) | |
download | pkgsrc-ed2819d435f552a7f12f802250469875ca763f9f.tar.gz |
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 (limited to 'lang/php')
-rw-r--r-- | lang/php/json.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/php/json.mk b/lang/php/json.mk new file mode 100644 index 00000000000..761f50e1331 --- /dev/null +++ b/lang/php/json.mk @@ -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 |