From owner-freebsd-ports@FreeBSD.ORG Mon Apr 11 21:47:22 2005 Return-Path: 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 DAB7316A4D0 for ; Mon, 11 Apr 2005 21:47:22 +0000 (GMT) Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by mx1.FreeBSD.org (Postfix) with SMTP id 342B243D53 for ; Mon, 11 Apr 2005 21:47:22 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 23815 invoked from network); 11 Apr 2005 21:47:20 -0000 Received: from unknown (HELO ale.varnet.bsd) (unknown) by unknown with SMTP; 11 Apr 2005 21:47:20 -0000 X-pair-Authenticated: 200.115.214.28 Date: Mon, 11 Apr 2005 18:48:18 -0300 From: Alejandro Pulver To: Kris Kennaway Message-ID: <20050411184818.494ac35e@ale.varnet.bsd> In-Reply-To: <20050411211923.GA9149@xor.obsecurity.org> References: <20050411175526.54ffd260@ale.varnet.bsd> <20050411211923.GA9149@xor.obsecurity.org> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-ports@freebsd.org Subject: Re: Creating port with options X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2005 21:47:23 -0000 On Mon, 11 Apr 2005 14:19:24 -0700 Kris Kennaway wrote: > On Mon, Apr 11, 2005 at 05:55:26PM -0300, Alejandro Pulver wrote: > > Hello, > > > > I am creating a port of the Core War system pMARS (the existent port > > is version 0.8, lastest is 0.9.2), and I will allow the user to > > choose the GUI and features. I have some questions: > > > > How can I "document" the options for the user? > > > > So that typing "make" will not do anything unless it has the > > required options (or it will use the defaults but first shows the > > available options). Will be possible for the user to store the > > configuration somwehere? Wich is the best way to show the user the > > options (before the building process)? > > > > P.S.: how do ports show the sysinstall-like dialog to choose > > options? > > With the OPTIONS variable; please see the porters' handbook and > bsd.port.mk. > > Kris > Hello, Thank you, that wat exactly what I was looking for (the OPTIONS variable). I suppose I should read the whole "bsd.port.mk" Makefile. P.S.: the Porter's Handbook does not say anything about the "OPTIONS" variable (at least I did not found it with grep "OPTIONS" * in the document directory). Best Regards, Ale