Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2003 13:30:12 -0800 (PST)
From:      Galen Sampson <galen_sampson@yahoo.com>
To:        stable@freebsd.org
Cc:        dislists@updegrove.net
Subject:   Re: portupgrade and PHP
Message-ID:  <20031104213012.8366.qmail@web14107.mail.yahoo.com>
In-Reply-To: <20031104193104.60445.qmail@web14106.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0-305261347-1067981412=:8000
Content-Type: text/plain; charset=us-ascii
Content-Id: 
Content-Disposition: inline

--- Claus Guttesen <cguttesen@yahoo.dk> wrote:
> Hi.
> 
> 
> > How can I continually compile PHP with the same
> > options as the last time?
> > 
> 
> Edit /usr/ports/lang/php4/Makefile and change the line
> PHP4_OPTIONS?= according to your needs.
> 

Maybe what is needed is something that would let you create "Makefile.local" in
the ports directory.  In this case you would create
/usr/port/lang/php4/Makefile.local.  In Makefile.local you would set the make
variables that you desire (Doug says this port is set up to do this already,
but not with Makefile.local).  It would be nice to have all ports include
"Makefile.local" in the current port directory if it exists.  Right now if the
port's Makefile .include's <bsd.port.mk> then you have partial functionality. 
You can create /usr/ports/Makefile.local, and set the variables in it.  I'm
suggesting taking it a step further, see attached.  This is attachment is _not_
supposed to work, this is just to give people the general idea.

Regards,
Galen

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
--0-305261347-1067981412=:8000
Content-Type: text/plain; name="bsd.port.mk.diff"
Content-Description: bsd.port.mk.diff
Content-Disposition: inline; filename="bsd.port.mk.diff"

--- bsd.port.mk.orginal	Tue Nov  4 13:15:01 2003
+++ bsd.port.mk	Tue Nov  4 13:16:31 2003
@@ -927,6 +927,11 @@
 USE_SUBMAKE=	yes
 .endif
 
+.if exists(${.CURDIR}/Makefile.local)
+.include "${.CURDIR}/Makefile.local"
+USE_SUBMAKE=	yes
+.endif
+
 .if !defined(PORTNAME) || !defined(PORTVERSION) || defined(PKGNAME)
 .BEGIN:
 	@${ECHO_CMD} "${PKGNAME}: You need to define PORTNAME and PORTVERSION instead of PKGNAME."

--0-305261347-1067981412=:8000--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031104213012.8366.qmail>