Need help with OPTIONS

Matthew Seaman m.seaman at
Fri Aug 20 08:34:39 PDT 2004

On Fri, Aug 20, 2004 at 05:18:16PM +0200, Miguel Mendez wrote:
> Hi all,
> Here's the deal, the docs say that one should include
> before you start testing the WITH_xyz variables.
> *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:
> FATAL: Makefile [35]: USE_X_PREFIX is set after including
> FATAL: Makefile [41]: USE_QT_VER is set after including
> 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.
> scienide# make
> "/usr/ports/Mk/", line 8: Malformed conditional (${_USE_GNOME_ALL:Mgtk20}=="")
> "/usr/ports/Mk/", line 8: Need an operator
> 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, but it has to fiddle around with some
variables like PORT_DBDIR or OPTIONSFILE to do so, which ideally it
probably shouldn't do.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list