From nobody@FreeBSD.org  Thu Jun 11 12:29:28 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DEB331065745
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 12:29:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id CCB6F8FC27
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 12:29:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5BCTSlq009555
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 12:29:28 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n5BCTSoV009554;
	Thu, 11 Jun 2009 12:29:28 GMT
	(envelope-from nobody)
Message-Id: <200906111229.n5BCTSoV009554@www.freebsd.org>
Date: Thu, 11 Jun 2009 12:29:28 GMT
From: Alexander Kriventsov <avk@vl.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] Mk/bsd.php.mk: add possibility to redefine PHP_PORT
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135474
>Category:       ports
>Synopsis:       [PATCH] Mk/bsd.php.mk: add possibility to redefine PHP_PORT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 11 12:30:01 UTC 2009
>Closed-Date:    Fri Apr 09 09:41:51 UTC 2010
>Last-Modified:  Fri Apr 09 09:41:51 UTC 2010
>Originator:     Alexander Kriventsov
>Release:        FreeBSD 7.2
>Organization:
.masterhost
>Environment:
FreeBSD dstest1.akriventsov.dev.masterhost.ru 7.2-i386-20090314-RELENG_7 FreeBSD 7.2-i386-20090314-RELENG_7 #0: Sat Mar 14 08:25:52 UTC 2009 root@svc12.masterhost.ru:/usr/obj/usr/src/sys/GENERICDEBUG i386
>Description:
This patch to add possibility to redefine PHP_PORT.
In our projects we need to create slave port of original lang/php5 with some extra patches.
At this moment I can't redefine php port, and have some broken deps.
For example:
I installed php-mysql and it has dep of lang/php5, but php5 I built from another port.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- /usr/ports/Mk/bsd.php.mk.orig	2009-06-11 11:48:03.000000000 +0000
+++ /usr/ports/Mk/bsd.php.mk	2009-06-11 12:04:49.000000000 +0000
@@ -136,7 +136,7 @@
 
 .endif
 
-PHP_PORT=	${PORTSDIR}/lang/php${PHP_VER}
+PHP_PORT?=	${PORTSDIR}/lang/php${PHP_VER}
 
 .if defined(USE_PHP_BUILD)
 BUILD_DEPENDS+=	${PHPBASE}/include/php/main/php.h:${PHP_PORT}


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Jun 11 12:30:14 UTC 2009 
Responsible-Changed-Why:  
bsd.php.mk is ale territory (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135474 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Fri Apr 9 09:41:35 UTC 2010 
State-Changed-Why:  
Committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135474 
>Unformatted:
