From owner-freebsd-ports@FreeBSD.ORG Fri Aug 20 15:34:39 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D567D16A4CE for ; Fri, 20 Aug 2004 15:34:39 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66D6843D46 for ; Fri, 20 Aug 2004 15:34:36 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i7KFXucM068252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Aug 2004 16:33:56 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i7KFXun1068251; Fri, 20 Aug 2004 16:33:56 +0100 (BST) (envelope-from matthew) Date: Fri, 20 Aug 2004 16:33:56 +0100 From: Matthew Seaman To: Miguel Mendez Message-ID: <20040820153356.GA67823@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Miguel Mendez , freebsd-ports@freebsd.org References: <20040820171816.640cde7a.flynn@energyhq.es.eu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <20040820171816.640cde7a.flynn@energyhq.es.eu.org> User-Agent: Mutt/1.5.6i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 20 Aug 2004 16:33:56 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-ports@freebsd.org Subject: Re: Need help with OPTIONS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2004 15:34:39 -0000 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 20, 2004 at 05:18:16PM +0200, Miguel Mendez wrote: > Hi all, >=20 > Here's the deal, the bsd.port.mk docs say that one should include > bsd.port.pre.mk before you start testing the WITH_xyz variables. >=20 > *But*, I have a problem with that, some options modify the PREFIX in my > port, e.g. if you enable GTK then USE_X_PREFIX is defined. Apparently > one cannot do that, as it results in errors and portlint complains: >=20 > FATAL: Makefile [35]: USE_X_PREFIX is set after including > bsd.port.pre.mk. > FATAL: Makefile [41]: USE_QT_VER is set after including bsd.port.pre.mk. >=20 > Also trying to build the port with the WITH_GTK option enabled results > in errors which don't show up if WITH_CONSOLE or WITH_QT are set. >=20 > scienide# make > "/usr/ports/Mk/bsd.gnome.mk", line 8: Malformed conditional (${_USE_GNOME= _ALL:Mgtk20}=3D=3D"") > "/usr/ports/Mk/bsd.gnome.mk", line 8: Need an operator >=20 > Any ideas? You might be interested in how lang/php4-extensions handles OPTIONS -- *all* that port does is set up the USE_PHP variable. It carefully avoids bsd.port.pre.mk, but it has to fiddle around with some variables like PORT_DBDIR or OPTIONSFILE to do so, which ideally it probably shouldn't do. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBJhnkiD657aJF7eIRAgOBAKCy5DSmChQNl4PfLXQ90DL0m0vt4ACgihYG 9kvos7Lpv+0+0ZYiyjBfnN8= =CC7C -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--