portupgrade and PHP

Galen Sampson galen_sampson at yahoo.com
Tue Nov 4 13:30:13 PST 2003


--- Claus Guttesen <cguttesen at 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
-------------- next part --------------
--- 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."


More information about the freebsd-stable mailing list