From owner-freebsd-ports@FreeBSD.ORG Sat Oct 6 05:07:48 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2950C106566B for ; Sat, 6 Oct 2012 05:07:48 +0000 (UTC) (envelope-from bsd-src@helfman.org) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id A8FBE8FC0A for ; Sat, 6 Oct 2012 05:07:47 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id x43so1832919wey.13 for ; Fri, 05 Oct 2012 22:07:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=Zdrs7i6TnPjY4XNlvgxImFosKIxctv5/kM8YfKsLB08=; b=FXE2xFfFJRVwA2wY7/o30Sa6GFCdQt4rVbHYficyJZfPLL5/vSxpFt7MF7mWsHfKkx db9uruLBYWAPd4VunGFOvJfWzQdxIsDKJqd4Ajn3w+AHA04JqRAeiAXc7xsB09FzzNSB HAGKkWnEnknf++MZSGLTKJ6mMCq2qhZOFykzJASAN8KAelLl3JA1WahJuQFWn9bYFhEy 3jc1Q8UkekPDcvaqp9ffYz53W0PE+GyNBqzUrCU1bdmgG0QYShQVjTu0sNCcpLh42mJb bwt6EwSIu1VDYZz8usPyjw8+HMD1OS07zcmys9r/YSpKnm3QVBELAdosO/VIq4TAkaM9 dchw== MIME-Version: 1.0 Received: by 10.216.72.5 with SMTP id s5mr6463060wed.154.1349500060637; Fri, 05 Oct 2012 22:07:40 -0700 (PDT) Sender: bsd-src@helfman.org Received: by 10.194.81.136 with HTTP; Fri, 5 Oct 2012 22:07:40 -0700 (PDT) In-Reply-To: <3D7A4CDD9A4D443F0689F6BD@Pauls-MacBook-Pro.local> References: <3D7A4CDD9A4D443F0689F6BD@Pauls-MacBook-Pro.local> Date: Fri, 5 Oct 2012 22:07:40 -0700 X-Google-Sender-Auth: zFBmssCXW60IXKBoKkpxYdiERvE Message-ID: From: Jason Helfman To: Paul Schmehl X-Gm-Message-State: ALoCoQk5SfRk2VGNYiINxA7cIjWJ0Z20pEZRb3dy+lrU9+En3pjzrJk80JY4SAAU3CNUO/7s6e/e Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-ports@freebsd.org Subject: Re: New OPTIONS structure - deselect all 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: Sat, 06 Oct 2012 05:07:48 -0000 On Fri, Oct 5, 2012 at 8:52 PM, Paul Schmehl wrote: > I'm working on updating the barnyard2 port, and I'm changing the port to > use the new OPTIONS structure. It seems no matter what I do, the first > port OPTION is automatically selected. > > I've tried OPTIONS_DEFAULT=, OPTIONS_DEFAULT= none, and not using > OPTIONS_DEFAULT at all. I do not want the first OPTION selected. I want > them all deselected so the person installing can choose the appropriate > ones for their situation. > > What's the secret sauce for this? I've looked through bsd.options.mk, > but I can't see it. > > Paul Schmehl, Senior Infosec Analyst > As if it wasn't already obvious, my opinions > are my own and not those of my employer. > ********************************************* > "It is as useless to argue with those who have > renounced the use of reason as to administer > medication to the dead." Thomas Jefferson > "There are some ideas so wrong that only a very > intelligent person could believe in them." George Orwell > > ______________________________**_________________ > 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 > " > If you want no option selected, you would define them all, and set nothing for OPTIONS_DEFAULT Here is an example. OPTIONS_SET= OPTION1 OPTION2 OPTIONS1_DESC= My first option OPTIONS2_DESC= My second option .if ${PORT_OPTIONS:MOPTION1} do something .endif Additionally, the documentation on Options in the Handbook has been updated and should be helpful, as well. If it isn't we can clean it up. http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#AEN2666 HTH -jgh -- Jason Helfman | FreeBSD Committer jgh@FreeBSD.org | http://people.freebsd.org/~jgh | The Power to Serve