From owner-freebsd-ports@FreeBSD.ORG Mon Nov 26 23:05:08 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA02D16A419 for ; Mon, 26 Nov 2007 23:05:08 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from QMTA07.westchester.pa.mail.comcast.net (qmta07.westchester.pa.mail.comcast.net [76.96.62.64]) by mx1.freebsd.org (Postfix) with ESMTP id 73D5313C459 for ; Mon, 26 Nov 2007 23:05:08 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from OMTA14.westchester.pa.mail.comcast.net ([76.96.62.60]) by QMTA07.westchester.pa.mail.comcast.net with comcast id HXlY1Y0061HzFnQ050Ne00; Mon, 26 Nov 2007 22:54:07 +0000 Received: from kirby.cyberbotx.com ([68.43.195.82]) by OMTA14.westchester.pa.mail.comcast.net with comcast id Hau71Y0031n8LeU0300000; Mon, 26 Nov 2007 22:54:07 +0000 X-Authority-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=EA_QvTobotYetbZ7SY4A:9 a=tSsW0OaujlymKO0tti0A:7 a=YTfgx2CbdEQibq9UnbAj0MLDNwQA:4 a=SV7veod9ZcQA:10 a=3I_whO4B8K8A:10 Message-ID: <474B4E8E.8060203@cyberbotx.com> Date: Mon, 26 Nov 2007 17:54:06 -0500 From: Naram Qashat User-Agent: Thunderbird 2.0.0.9 (X11/20071116) MIME-Version: 1.0 To: ports@freebsd.org References: <20071126183733.GA34456@belle.0lsen.net> In-Reply-To: <20071126183733.GA34456@belle.0lsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: WITH_/WITHOUT_ variables confusing X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2007 23:05:08 -0000 Just to throw in my 2 cents, as far as I understand the way the OPTIONS list works, when the Makefile has the option (say, option XXX) as on, it sets WITH_XXX, and if the Makefile has the option off, it sets WITHOUT_XXX. The port maintainer should be checking if the opposite is defined in case the user decides they want the opposite effect to occur. So in your example, WITH_SERVER would be set because of OPTIONS, and the Makefile should be checking if WITHOUT_SERVER is set by the user. If the Makefile isn't checking WITHOUT_SERVER and only checking WITH_SERVER, you'll never have the option to enable or disable the option at will. That's been my take on it, and it seems to be valid. If any part of what I've said is wrong or hard to understand, let me know. Naram Qashat Clint Olsen wrote: > I'm trying to build net/vnc, and I want a server. The OPTIONS list > shows: > > OPTIONS = server "blah blah" on > > So, this tells me that by default it should be on, correct? > Yet the port throughout the makefile references WITHOUT_SERVER. I've > tried various combinations of WITH_SERVER and WITHOUT_SERVER and I can't > seem to disable WITHOUT_SERVER. > > A couple one-line examples in the manpage would clear this up a lot. > I checked the handbook, the ports manpage, and I even looked at the > ports default makefile. > > And finally, once I've figured out how to do this, how/where are we > supposed to override this so I never have to deal with it again? I > always want a server built. > > Thanks, > > -Clint > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >