From owner-freebsd-questions Tue Feb 25 14:10:18 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABA0137B405 for ; Tue, 25 Feb 2003 14:10:14 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6ABD143FBD for ; Tue, 25 Feb 2003 14:10:09 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b068.otenet.gr [195.167.121.196]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h1PMA6Os008303; Wed, 26 Feb 2003 00:10:07 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.7/8.12.7) with ESMTP id h1PM9vPY004395; Wed, 26 Feb 2003 00:10:05 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.7/8.12.7/Submit) id h1PJp6AW002822; Tue, 25 Feb 2003 21:51:06 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 25 Feb 2003 21:51:06 +0200 From: Giorgos Keramidas To: Antoine Jacoutot Cc: freebsd-questions@FreeBSD.ORG Subject: Re: stupid question Message-ID: <20030225195106.GC980@gothmog.gr> References: <1046198601.3e5bb9499e7b5@webmail.lphp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1046198601.3e5bb9499e7b5@webmail.lphp.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-02-25 19:43, Antoine Jacoutot wrote: > I am sure it is a common question, but I can't find the answer: - > how can I save my defined settings when building a port? > Putting them in /etc/make.conf does not seem to work. Why not? What did you put in /etc/make.conf? I just tried rebuiding textproc/ispell with ISPELL_FR=yes in my make.conf file. Ports correctly tries to build ispell with French support by typing: # cd /usr/ports/txtproc/ispell # make > For exemple, if I want to build imapd with drac support, I go "make > WITH_DRAC=yes install", but I would love to go like "make install", > putting WITH_DRAC=yes in some configuration file somewhere so I > don't have to write nor remember it all the time (especially when > upgrading). > > Is that even possible ? Another possibility is to create a metaport, that depends on other ports. I call mine my-workstation, and I have created it under /usr/ports/misc/my-workstation. The purpose of this port is not to build anything or install anything of its own; just to have proper dependencies for all the programs I usually want around. The Makefile of that port includes: # Feature customization for the `contained' ports. .MAKEFLAGS+= WITHOUT_X11=YES \ ISPELL_FR=YES \ ISPELL_IT=YES \ WITH_SSL=YES These flags are passed down to all the dependencies of the port, when it's installed. This way, all the ports that my-workstation pulls in by dependencies will compile without X11 support, ispell will include both Italian and French support, Pine will have SSL support compiled in by default, etc. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message