Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2003 23:27:33 +0200
From:      Holger Lamm <holger@e-gitt.net>
To:        ports@freebsd.org
Subject:   ".if defined" within dependencies
Message-ID:  <20030630212733.GA94637@gruft.de>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have a problem with writing a proper Makefile for my port.

First the question:
How can I trigger ".if defined" - declarations in my dependencies?

Now the problem:
My port is net/mldonkey, and it can be compiled X11-less by defining
"WITHOUT_GUI". (This will compile the client, but not the GUI, so
the name of the trigger is meaningful.)

Problem is: It depends on lang/ocaml, as it is written in ocaml.
ocaml builds X11, as long as WITHOUT_X11 is not defined.
When I say "WITHOUT_X11=yes" in the Makefile, it is too late as
all ".if defined" are long parsed. 

So, how can I depend on ocaml with WITHOUT_X11 set?

Thank you very much,

Holger

- -- 
"Computer games don't affect kids. If Pacman would have affected us as
children, we would now run around in darkened rooms, munching pills and
listening to repetetive music."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/AKtFgdO/JOxNDBQRAprRAJ9MP5m+8GfrEEU7u/0lomo+wbDLCQCfeHfB
nfy5mpk8iF65L4yzZnLg2z0=
=k7tD
-----END PGP SIGNATURE-----



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