From owner-freebsd-questions@FreeBSD.ORG Fri Apr 22 11:13:05 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE729106566C for ; Fri, 22 Apr 2011 11:13:05 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from medusa.otenet.gr (medusa.otenet.gr [83.235.69.18]) by mx1.freebsd.org (Postfix) with ESMTP id 960108FC08 for ; Fri, 22 Apr 2011 11:13:05 +0000 (UTC) Received: from rosebud.otenet.gr (rosebud.otenet.gr [83.235.67.42]) by medusa.otenet.gr (ESMTP) with ESMTP; Fri, 22 Apr 2011 14:13:03 +0300 (EEST) Received: from [192.168.0.151] (ppp-94-69-59-239.home.otenet.gr [94.69.59.239]) by rosebud.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id p3MBD0Ax022875; Fri, 22 Apr 2011 14:13:03 +0300 Message-ID: <4DB162BC.3030206@otenet.gr> Date: Fri, 22 Apr 2011 14:13:00 +0300 From: Manolis Kiagias User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Icedove/3.1.9 MIME-Version: 1.0 To: Carl References: <4DB0F34B.9030008@telus.net> <4DB1297E.6090205@telus.net> <4DB12F2F.8020306@otenet.gr> In-Reply-To: <4DB12F2F.8020306@otenet.gr> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: building a port with very long list of build options X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2011 11:13:05 -0000 On 04/22/2011 10:33 AM, Manolis Kiagias wrote: > On 04/22/2011 10:08 AM, Carl wrote: >>> This form will override the Makefile present in the current directory >>> and will use the specified make file with name your_own_make_file_name . >> make -f your_own_make_file_name >> >> Yes, I did see that, but I interpreted that to mean my make file >> *replaces* the original, in which case I would need to populate my >> make file not only with the list of build options I want but also a >> copy of everything in the original make file. If I'm correct, that >> doesn't seem to me to be a good idea from a maintenance perspective. I >> was hoping for something like the -f option that somehow inserted >> rather than replaced. >> >> Carl / K0802647 > Assuming you have already selected some options during make config, you > could try adding your own to the file /var/db/ports//options > _______________________________________________ A probably more elegant way is to use the ports-mgmt/portconf port. This allows per port settings to be applied, which are honored by make, portupgrade and the other tools. Just install and use /usr/local/etc/ports.conf to add your options: Here is the sample supplied with the portconf: editors/openoffice.org-2: WITH_CCACHE|LOCALIZED_LANG=it print/ghostscript-* print/lpr-wrapper: A4 sysutils/fusefs-kmod*: !KERNCONF | !NOPORTDOCS www/firefox-i18n: WITHOUT_SWITCHER | FIREFOX_I18N=fr it x11/fakeport: CONFIGURE_ARGS=--with-modules="aaa bbb ccc"