From owner-freebsd-questions@FreeBSD.ORG Wed Apr 9 23:51:31 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 840C237B401 for ; Wed, 9 Apr 2003 23:51:31 -0700 (PDT) Received: from ns0.binep.ac.ru (serv2.binep.ac.ru [193.233.44.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6224C43FA3 for ; Wed, 9 Apr 2003 23:51:28 -0700 (PDT) (envelope-from goshik@binep.ac.ru) Received: from byfi (byfi.binep.ac.ru [193.233.44.234]) by ns0.binep.ac.ru (8.11.6/8.11.6) with SMTP id h3A6wOa72593; Thu, 10 Apr 2003 10:58:24 +0400 (MSD) (envelope-from goshik@binep.ac.ru) Message-ID: <07b601c2ff2d$96a06360$ea2ce9c1@binep.ac.ru> From: "Igor B. Bykhalo" To: "Adam" References: <1049950760.64457.53.camel@jake> Date: Thu, 10 Apr 2003 10:51:12 +0400 Organization: BINEPCP RAS MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 06:51:31 -0000 ----- Original Message ----- From: "Adam" To: 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