Optional Patches

Ion-Mihai Tetcu itetcu at FreeBSD.org
Sun May 22 13:16:39 UTC 2011


On Wed, 18 May 2011 19:01:31 -0400
Matthew Pounsett <matt at 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 -> itetcu at FreeBSD.org, PGP Key ID 057E9F8B493A297B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20110522/f70f9508/signature.pgp


More information about the freebsd-ports mailing list