How to define variables when using portupgrade
Alex Kiesel
alex.kiesel at document-root.de
Thu Apr 10 05:36:30 PDT 2003
On Thu, 2003-04-10 at 06:59, Adam wrote:
> When compiling a port for the first time, you can define variables for
> the Makefile easily:
> make -DWITH_GMP install clean
>
> However, I'm not sure how to define the same variable when using
> portupgrade. Is it possible? I am currently manually deinstalling and
> recompiling ports whenever I need to customize the compile process.
>
> Is there a better way?
E.g.:
portupgrade -m '-DWITH_APACHE2' mod_php4
Or - as the others proposed - write those defines to
$PREFIX/etc/pkgtools.conf.
-Alex
More information about the freebsd-questions
mailing list