Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Dec 2006 23:57:25 +0100
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        dougb@FreeBSD.org
Cc:        freebsd-ports@FreeBSD.org
Subject:   Per-port compile-time options in portmaster.rc
Message-ID:  <20061220225725.GP48407@obiwan.tataz.chchile.org>

next in thread | raw e-mail | index | archive | help
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 >



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061220225725.GP48407>