Received: by mail.netbsd.org (Postfix, from userid 605) id 10FD584D2D; Sun, 7 Mar 2021 13:20:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 497DB84D27 for ; Sun, 7 Mar 2021 13:20:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id zO065Cwkq4gq for ; Sun, 7 Mar 2021 13:20:56 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 9AD8F84CE3 for ; Sun, 7 Mar 2021 13:20:56 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 89DA8FA95; Sun, 7 Mar 2021 13:20:56 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1615123256203060" MIME-Version: 1.0 Date: Sun, 7 Mar 2021 13:20:56 +0000 From: "Takahiro Kambe" Subject: CVS commit: pkgsrc/lang/php To: pkgsrc-changes@NetBSD.org Reply-To: taca@netbsd.org X-Mailer: log_accum Message-Id: <20210307132056.89DA8FA95@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1615123256203060 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1615123256203060 Content-Disposition: inline Content-Length: 647 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 --_----------=_1615123256203060--