From owner-freebsd-questions@FreeBSD.ORG Thu Apr 10 04:16:24 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7C5137B401 for ; Thu, 10 Apr 2003 04:16:24 -0700 (PDT) Received: from mf1.bredband.net (mf1.bredband.net [195.54.106.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8DC943FAF for ; Thu, 10 Apr 2003 04:16:18 -0700 (PDT) (envelope-from mk-freebsd@bredband.net) Received: from localhost.036-23-6f72652.cust.bredbandsbolaget.se ([213.112.193.73]) by mf1.bredband.net with ESMTP <20030410111617.MFZH269.mf1@localhost.036-23-6f72652.cust.bredbandsbolaget.se>; Thu, 10 Apr 2003 13:16:17 +0200 Received: from c-49c170d5.036-23-6f72652.cust.bredbandsbolaget.se (localhost [127.0.0.1])with ESMTP id h3ABGHnM044292; Thu, 10 Apr 2003 13:16:17 +0200 (CEST) (envelope-from mk-freebsd@bredband.net) Received: (from martink@localhost) (8.12.9/8.12.9/Submit) id h3ABGBGH044236; Thu, 10 Apr 2003 13:16:11 +0200 (CEST) (envelope-from mk-freebsd@bredband.net) Date: Thu, 10 Apr 2003 13:16:10 +0200 From: Martin Karlsson To: Adam Message-ID: <20030410111610.GA593@c-49c170d5.bredbandsbolaget.se> Mail-Followup-To: Martin Karlsson , Adam , freebsd-questions@freebsd.org References: <1049950760.64457.53.camel@jake> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1049950760.64457.53.camel@jake> X-Powered-by: FreeBSD X-PGP-Keyid: 9C924660 X-PGP-Fingerprint: 5970 BE22 2C33 4D8F 53FD 7E34 66FF 9332 9C92 4660 X-PGP-Key: http://www.krutov.org/martin_karlsson.asc User-Agent: Mutt/1.5.4i cc: freebsd-questions@freebsd.org Subject: Re: How to define variables when using portupgrade X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2003 11:16:24 -0000 * Adam [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