Date: Fri, 22 Apr 2011 14:13:00 +0300 From: Manolis Kiagias <sonicy@otenet.gr> To: Carl <k0802647@telus.net> Cc: freebsd-questions@freebsd.org Subject: Re: building a port with very long list of build options Message-ID: <4DB162BC.3030206@otenet.gr> In-Reply-To: <4DB12F2F.8020306@otenet.gr> References: <4DB0F34B.9030008@telus.net> <BANLkTinn53mqc=2rkWqMAqZJvdK-vydP7A@mail.gmail.com> <4DB1297E.6090205@telus.net> <4DB12F2F.8020306@otenet.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
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/<portname>/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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DB162BC.3030206>