Need help with OPTIONS
Matthew Seaman
m.seaman at infracaninophile.co.uk
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 bsd.port.mk docs say that one should include
> bsd.port.pre.mk 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
> bsd.port.pre.mk.
> FATAL: Makefile [41]: USE_QT_VER is set after including bsd.port.pre.mk.
>
> 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/bsd.gnome.mk", line 8: Malformed conditional (${_USE_GNOME_ALL:Mgtk20}=="")
> "/usr/ports/Mk/bsd.gnome.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 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
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040820/1e7a234a/attachment.bin
More information about the freebsd-ports
mailing list