Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 2004 16:33:56 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Miguel Mendez <flynn@energyhq.es.eu.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Need help with OPTIONS
Message-ID:  <20040820153356.GA67823@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040820171816.640cde7a.flynn@energyhq.es.eu.org>
References:  <20040820171816.640cde7a.flynn@energyhq.es.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040820153356.GA67823>