From owner-freebsd-questions@FreeBSD.ORG Thu Apr 10 05:36:30 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 52BC237B401 for ; Thu, 10 Apr 2003 05:36:30 -0700 (PDT) Received: from mxintern.kundenserver.de (mxintern.kundenserver.de [212.227.126.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F65743F85 for ; Thu, 10 Apr 2003 05:36:29 -0700 (PDT) (envelope-from alex.kiesel@document-root.de) Received: from [172.17.29.6] (helo=alex.i.schlund.de) by mxintern.kundenserver.de with smtp (Exim 3.35 #1) id 193bI4-0004XO-00 for freebsd-questions@freebsd.org; Thu, 10 Apr 2003 14:36:28 +0200 Received: (qmail 90545 invoked by uid 519); 10 Apr 2003 12:36:27 -0000 From: Alex Kiesel To: Adam In-Reply-To: <1049950760.64457.53.camel@jake> References: <1049950760.64457.53.camel@jake> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1049978186.67946.1.camel@alex.i.schlund.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 10 Apr 2003 14:36:27 +0200 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 12:36:30 -0000 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