From owner-freebsd-ports@FreeBSD.ORG Thu Dec 21 13:45:06 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org 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 B487616A4A0; Thu, 21 Dec 2006 13:45:06 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 654C013C460; Thu, 21 Dec 2006 13:45:06 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by postfix1-g20.free.fr (Postfix) with ESMTP id 43CDC64F2E1; Wed, 20 Dec 2006 23:56:59 +0100 (CET) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp6-g19.free.fr (Postfix) with ESMTP id 92F20430F2; Wed, 20 Dec 2006 23:56:29 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id EE43C9B68F; Wed, 20 Dec 2006 22:57:25 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id C82F7408C; Wed, 20 Dec 2006 23:57:25 +0100 (CET) Date: Wed, 20 Dec 2006 23:57:25 +0100 From: Jeremie Le Hen To: dougb@FreeBSD.org Message-ID: <20061220225725.GP48407@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-ports@FreeBSD.org Subject: Per-port compile-time options in portmaster.rc 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: Thu, 21 Dec 2006 13:45:06 -0000 Hi Doug, I checked portmaster manual page for such a feature, but I didn't find one. There is the -m flag, but I have to remember the port's compile knob each time I upgrade one. Furthermore, it is really difficult to use both -a and -m at the same time. Do you have plans about this ? I would really like to switch from portupgrade -- which eats too much resources -- to portmaster on my old Pentium II running RELENG_4, but I really need this feature. I can see two ways to achieve this: - First define a function in portmaster.rc taking the port name, or category/port, and either printing the make options on stdout or setting a predefined variable. This can be easily performed with a case statement. - Use an external file processed by awk in portmaster with the following format: % * WITH_OPENSSL_STABLE=yes -DWITHOUT_X11 % editors/vim -DNO_GUI -DWITH_CSCOPE % multimedia/mplayer -DWITH_VORBIS -DWITH_AALIB -DWITH_LIBCACA -DWITH_OPTIMIZED_CFLAGS I think the second solution would be easier for the end user. What do you think of this ? Would you accept a patch implementing this solution ? Best regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >