From owner-svn-ports-head@freebsd.org Mon Apr 10 15:08:13 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BF06D371D3; Mon, 10 Apr 2017 15:08:13 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2C4D0852; Mon, 10 Apr 2017 15:08:13 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3AF8CHl088778; Mon, 10 Apr 2017 15:08:12 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3AF8CCv088777; Mon, 10 Apr 2017 15:08:12 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201704101508.v3AF8CCv088777@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Mon, 10 Apr 2017 15:08:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r438174 - head/Mk/Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2017 15:08:13 -0000 Author: mat Date: Mon Apr 10 15:08:12 2017 New Revision: 438174 URL: https://svnweb.freebsd.org/changeset/ports/438174 Log: Introduces USES=php:pecl. It sets sane defaults when fetching from http://pecl.php.net/. Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D10281 Modified: head/Mk/Uses/php.mk Modified: head/Mk/Uses/php.mk ============================================================================== --- head/Mk/Uses/php.mk Mon Apr 10 15:06:19 2017 (r438173) +++ head/Mk/Uses/php.mk Mon Apr 10 15:08:12 2017 (r438174) @@ -15,6 +15,7 @@ # - mod : Want the Apache Module for PHP. # - web : Want the Apache Module or the CGI version of PHP. # - embed : Want the embedded library version of PHP. +# - pecl : Fetches from PECL. # # If the port requires a predefined set of PHP extensions, they can be # listed in this way: @@ -89,6 +90,17 @@ DEV_WARNING+= "USES=php:phpize is includ . if ${php_ARGS:Mext} && ${php_ARGS:Mzend} DEV_WARNING+= "USES=php:ext is included in USES=php:zend, so it is not needed" . endif +. if ${php_ARGS:Mext} && ${php_ARGS:Mpecl} +DEV_WARNING+= "USES=php:ext is included in USES=php:pecl, so it is not needed" +. endif + +. if ${php_ARGS:Mpecl} +php_ARGS+= ext +EXTRACT_SUFX= .tgz +MASTER_SITES= http://pecl.php.net/get/ +PKGNAMEPREFIX= pecl- +DIST_SUBDIR= PECL +. endif PHPBASE?= ${LOCALBASE} . if exists(${PHPBASE}/etc/php.conf)