On Wed, 18 May 2011 19:01:31 -0400 Matthew Pounsett <m...@conundrum.com> wrote:
> > Based on the responses here it sounds like I've been doing nothing > wrong so I played around a bit more. I guess in my testing there > must've been some combination of things I didn't get right... I did a > bunch more testing and eventually I made it work doing exactly what > I've been doing, except for the location of the ifdef. > > It turns out that in order to make this work, the .if define must > appear below where bsd.port.pre.mk is included. If it occurs above > that, I guess the definition of .if doesn't exist yet and so the > block doesn't get run at all. Yes, or you need to use bsd.options.mk. > I don't recall seeing this restriction mentioned in the porters' > handbook, but perhaps I missed it. It is documented in PH "5.11.2.2 Syntax" -- IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" FreeBSD committer -> ite...@freebsd.org, PGP Key ID 057E9F8B493A297B
signature.asc
Description: PGP signature