From owner-freebsd-questions@FreeBSD.ORG Mon Nov 22 00:30:56 2004 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 8AC0116A4CE for ; Mon, 22 Nov 2004 00:30:56 +0000 (GMT) Received: from lakermmtao11.cox.net (lakermmtao11.cox.net [68.230.240.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id F334343D39 for ; Mon, 22 Nov 2004 00:30:55 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.30.24]) by lakermmtao11.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20041122003055.GNAH1734.lakermmtao11.cox.net@dolphin.local.net>; Sun, 21 Nov 2004 19:30:55 -0500 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with SMTP id iAM0UjrT004151; Sun, 21 Nov 2004 18:30:54 -0600 (CST) (envelope-from conrads@cox.net) Date: Sun, 21 Nov 2004 18:30:40 -0600 From: "Conrad J. Sabatier" To: Martin Hudec Message-ID: <20041121183040.2595c68c@dolphin.local.net> In-Reply-To: <20041121183214.GE3260@pleiades.aeternal.net> References: <200411211306.05181.v.demartino2@virgilio.it> <41A0C4E1.3060805@FreeBSD.org> <20041121183214.GE3260@pleiades.aeternal.net> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Passing options to configure / compiler 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: Mon, 22 Nov 2004 00:30:56 -0000 On Sun, 21 Nov 2004 19:32:14 +0100, Martin Hudec wrote: > Hello, > > On Sun, Nov 21, 2004 at 05:40:01PM +0100 or thereabouts, Remko Lodder > wrote: > > Vittorio wrote: > > >I couldn't find in the docs how to pass options to the configure > > >script. > > > > > > > if you want to use WITH_TESTS for example you need to add > > > > make WITH_TESTS=yes install clean (or something similiar) > > > > when portupgrade'ing that you should do > > > > portupgrade -M 'WITH_TESTS=yes' postgresql > > (or again; something similiar) > > > > Hope that helps! > > It would be nice for him to set options pkgtools.conf, which > can be usually found in /usr/local/etc. > > For example: > I want links to be compiled without X11 support, so I set in section > named MAKE_ARGS following: > > 'www/links' => 'WITHOUT_X11=yes', > > so this compilation option will be reflected next time he uses > portupgrade utility. Otherwise portupgrade will ignore previous > compilation options. Or at least I don't know how to tell portupgrade > which options did I use to compile the port :). This also has the advantage of being able to set arguments to configure which the port maintainer may not have provided knobs for, by doing something like this: 'www/links' => 'CONFIGURE_ARGS+=--some-option-to-configure', Of course, this all depends on having portupgrade installed, and using it consistently for building/upgrading. -- Conrad J. Sabatier -- "In Unix veritas"