Skip site navigation (1)Skip section navigation (2)
Date:      10 Apr 2003 14:36:27 +0200
From:      Alex Kiesel <alex.kiesel@document-root.de>
To:        Adam <blueeskimo@gmx.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to define variables when using portupgrade
Message-ID:  <1049978186.67946.1.camel@alex.i.schlund.de>
In-Reply-To: <1049950760.64457.53.camel@jake>
References:  <1049950760.64457.53.camel@jake>

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



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