Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Dec 2005 20:24:30 +1100
From:      Edwin Groothuis <edwin@mavetju.org>
To:        ale@freebsd.org
Cc:        ports@freebsd.org
Subject:   USE_PHP *after* bsd.port.pre.mk
Message-ID:  <20051221092430.GA30569@k7.mavetju>

next in thread | raw e-mail | index | archive | help
For a port with OPTIONS (pgsql vs mysql) and PHP, I want to set
USE_PHP *after* bsd.port.pre.mk is included.

bsd.php.mk says:

# Adding 'USE_PHP=yes' to a port includes this Makefile after bsd.ports.pre.mk.

bsd.port.mk says:

	# Start of pre-makefile section.
	.if !defined(AFTERPORTMK)
	[...]
	.if defined(USE_PHP)
	.include "${PORTSDIR}/Mk/bsd.php.mk"
	.endif
	[...]
	.endif
	# End of pre-makefile section.

	and no further includes of bsd.php.mk


"USE_PHP=yes" before bsd.port.pre.mk gives me:
	depends on file: /usr/local/include/php/main/php.h

"USE_PHP=pgsql" before bsd.port.pre.mk gives me:
	depends on file: /usr/local/include/php/main/php.h
	depends on file: /usr/local/lib/php/20020429/pgsql.so

"USE_PHP=pgsql" after bsd.port.pre.mk gives me:
	...


So yeah, what is the trick?
(besides from submitting my bsd.options.mk)

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin@mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/



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