From owner-freebsd-ports@FreeBSD.ORG Mon Jun 30 14:27:35 2003 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 EE86F37B401 for ; Mon, 30 Jun 2003 14:27:35 -0700 (PDT) Received: from obh.snafu.de (obh.snafu.de [213.73.92.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03C3443FBF for ; Mon, 30 Jun 2003 14:27:34 -0700 (PDT) (envelope-from holger@gruft.de) Received: from holger by obh.snafu.de with local (Exim 3.36 #1) id 19X6BR-000PEX-00 for ports@freebsd.org; Mon, 30 Jun 2003 23:27:33 +0200 Date: Mon, 30 Jun 2003 23:27:33 +0200 From: Holger Lamm To: ports@freebsd.org Message-ID: <20030630212733.GA94637@gruft.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline User-Agent: Mutt/1.5.3i Sender: Holger Lamm Subject: ".if defined" within dependencies 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: Mon, 30 Jun 2003 21:27:36 -0000 -----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-----