How to define variables when using portupgrade

Igor B. Bykhalo goshik at binep.ac.ru
Wed Apr 9 23:51:31 PDT 2003


----- Original Message ----- 
From: "Adam" <blueeskimo at gmx.net>
To: <freebsd-questions at freebsd.org>
Sent: Thursday, April 10, 2003 8:59 AM
Subject: How to define variables when using portupgrade


> 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?

Yes, read /usr/local/etc/pkgtools.conf.sample

and create your pkgtools.conf with needed changes
(hint: check MAKE_ARGS section).

HTH,
Igor



More information about the freebsd-questions mailing list