From owner-freebsd-ports@FreeBSD.ORG Wed Mar 22 07:21:41 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A230316A423 for ; Wed, 22 Mar 2006 07:21:41 +0000 (UTC) (envelope-from bkoenig@cs.tu-berlin.de) Received: from efacilitas.de (smtp.efacilitas.de [85.10.196.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D5B443D48 for ; Wed, 22 Mar 2006 07:21:38 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-169-72.dynamic.qsc.de [212.202.169.72]) by efacilitas.de (Postfix) with ESMTP id 6FB5C4C542; Wed, 22 Mar 2006 08:32:22 +0100 (CET) Received: from [192.168.1.2] (muhkuh.local [192.168.1.2]) by eurystheus.local (Postfix) with ESMTP id 5EFD75285D; Wed, 22 Mar 2006 08:21:31 +0100 (CET) Message-ID: <4420FB07.503@cs.tu-berlin.de> Date: Wed, 22 Mar 2006 08:21:43 +0100 From: =?ISO-8859-15?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Benjamin Lutz References: <200603211537.09551.benlutz@datacomm.ch> In-Reply-To: <200603211537.09551.benlutz@datacomm.ch> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-ports@freebsd.org Subject: Re: OPTIONS and WITH/WITHOUT variables 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: Wed, 22 Mar 2006 07:21:41 -0000 Benjamin Lutz schrieb: > Section 5.11.2.2, Syntax of the Porter's Handbook says: > > | OPTIONS definition must appear before the inclusion of bsd.port.pre.mk. The > | WITH_* and WITHOUT_* variables can only be tested after the inclusion of > | bsd.port.pre.mk. Due to a deficiency in the infrastructure, you can only > | test WITH_* variables for options, which are OFF by default, and WITHOUT_* > | variables for options, which defaults to ON. > > However I noticed that for variables that default to on, a WITH_* variable is > defined. [...] I'm not quite sure if I understand you correctly. The handbook talking about *options* that default to on, not variables. It means if you have a super-duper feature that is turned ON by default then you may have a WITHOUT_SUPERDUPER switch that turns it OFF ... and the other way around: there is a useless feature that might be turned OFF by default then you probably have a WITH_USELESSFEATURE switch that turns it ON. :-) Björn