From owner-freebsd-ports Mon May 28 5:45:24 2001 Delivered-To: freebsd-ports@freebsd.org Received: from atlantis.homeip.net (d110240.upc-d.chello.nl [213.46.110.240]) by hub.freebsd.org (Postfix) with SMTP id 13B4A37B423 for ; Mon, 28 May 2001 05:45:20 -0700 (PDT) (envelope-from wvengen@stack.nl) Received: (qmail 15991 invoked from network); 28 May 2001 12:45:18 -0000 Received: from unknown (HELO stack.nl) (192.168.1.4) by d110240.upc-d.chello.nl with SMTP; 28 May 2001 12:45:18 -0000 Message-ID: <3B12485D.5C649371@stack.nl> Date: Mon, 28 May 2001 14:45:17 +0200 From: Willem van Engen X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Peter Pentchev Cc: Espen Skoglund , freebsd-ports@FreeBSD.ORG Subject: Re: User-selectable fetch/build/install References: <3B1233D3.6E00AA2A@stack.nl> <15122.14970.856827.714292@i30nb2.ira.uka.de> <20010528150335.G588@ringworld.oblivion.bg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Peter Pentchev wrote: > > On Mon, May 28, 2001 at 01:46:02PM +0200, Espen Skoglund wrote: > > [Willem van Engen] > > > I'm making a port of the sword project (www.crosswire.org). It's a > > > framework for bible-programs and consists of a library and many > > > modules. I would like the user to select the desired modules, and > > > then only the selected modules will be downloaded and installed. > > > Other ports (e.g. xmms) made several ports for extra modules > > > (xmms-crossfade, xmms-liveice, ...). But since sword has many > > > modules (>90), I wouldn't consider it practical. How should I > > > implement this? I could make a subdir containing other ports for all > > > the modules, or make a shellscript doing all this and create a port > > > for that, or create a complex Makefile in the port, ... Except for > > > the first idea, the pkg-plist would be a problem; it would change > > > when the user selects something else. Could anyone shine some light > > > on this? > > > > I can see two obvious solutions here: > > > > 1. Make bundles of the modules and create packages for these bundles > > (e.g., ports/editors/xemacs-prog-packages). > > > > 2. Use a shell script for having the user selecting modules. The > > script generates a temporary plist which is used during the > > install process (e.g., ports/textproc/ispell, sans the shell > > script). > > > > Please note that if the latter solution is used you should probably > > also provide a set of ``standard'' modules to be included for > > non-interactive builds. > > Another example for build-time configuration can be seen in www/mod_php4: > look at the Makefile and the scripts/configure script. This is exactly what I am looking for. Together with ispell, I should be able to make it. And thanks for the quick reply both of you :) - Willem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message