wblock at wonkity.com
Wed Jul 14 17:09:34 UTC 2010
On Wed, 14 Jul 2010, Jim Pazarena wrote:
> my own ports confusion (in general) is that in some ports
> you use a "-Dxxxxxx" to define a required (or not required) option
> while in others (at least dspam) you use WITHOUT_xxx or WITH_xxx=1.
> It would be nice if all ports has the same standard of definitions.
> Or... am I confused?
The two methods have the same result.
make -V WITHOUT_MOZILLA
Shows nothing, since that variable is undefined by default. Using -D
tells make to define it, which it does by setting it to "1":
make -DWITHOUT_MOZILLA -V WITHOUT_MOZILLA
Manually setting the variable to a value also defines it:
make WITHOUT_MOZILLA=1 -V WITHOUT_MOZILLA
make WITHOUT_MOZILLA=yes -V WITHOUT_MOZILLA
The Makefiles usually only care about whether a WITH_ variable has been
defined, not the actual value, so the result is the same.
More information about the freebsd-ports