Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 2010 11:09:32 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Jim Pazarena <fports@paz.bz>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: dspam install
Message-ID:  <alpine.BSF.2.00.1007141058110.26991@wonkity.com>
In-Reply-To: <4C3DDF33.4030706@paz.bz>
References:  <4C3A2EE7.7020104@paz.bz> <20100711212831.GA17226@magic.hamla.org> <AANLkTikNzfsunMHILOG6oUgJqPQLu9AZQWX0t50HxxRH@mail.gmail.com> <20100712230428.GB18432@magic.hamla.org> <AANLkTikSxrIkpzB-cFiGCwOrggv6-4qp-vgIw08HIIQa@mail.gmail.com> <20100713222839.GA19319@magic.hamla.org> <4C3DDF33.4030706@paz.bz>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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