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.

For example:

  cd /usr/ports/editors/openoffice.org-3
  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
  1

Manually setting the variable to a value also defines it:

  make WITHOUT_MOZILLA=1 -V WITHOUT_MOZILLA
  1

  make WITHOUT_MOZILLA=yes -V WITHOUT_MOZILLA
  yes

The Makefiles usually only care about whether a WITH_ variable has been defined, not the actual value, so the result is the same.
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to