Date: Thu, 10 Apr 2003 13:16:10 +0200 From: Martin Karlsson <mk-freebsd@bredband.net> To: Adam <blueeskimo@gmx.net> Cc: freebsd-questions@freebsd.org Subject: Re: How to define variables when using portupgrade Message-ID: <20030410111610.GA593@c-49c170d5.bredbandsbolaget.se> 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
* Adam <blueeskimo@gmx.net> [2003-04-10 00.59 -0400]:
> 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?
Excerpt from 'man portupgrade(1):
(same for portinstall)
OPTIONS
The following command line arguments are supported:
[...]
-m
--make-args Specify arguments to append to each make(1) com-
mand line.
Use it like so:
# portupgrade -m 'WITH_FOO=yes USE_BAR=no' category/port
Or use Igor's advice to automate the process.
HTH,
martink
--
Martin Karlsson
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030410111610.GA593>
