From owner-freebsd-ports@FreeBSD.ORG Mon Feb 28 19:14:14 2005 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 AD09816A4CE for ; Mon, 28 Feb 2005 19:14:14 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id A1B2943D5F for ; Mon, 28 Feb 2005 19:14:13 +0000 (GMT) (envelope-from andreas.kohn@gmx.net) Received: (qmail invoked by alias); 28 Feb 2005 19:14:12 -0000 Received: from unknown (EHLO localhost.localdomain) (212.204.44.203) by mail.gmx.net (mp012) with SMTP; 28 Feb 2005 20:14:12 +0100 X-Authenticated: #2431876 From: Andreas Kohn To: freebsd-ports@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-DVbcqryIoQStAmXnhjsf" Date: Mon, 28 Feb 2005 20:13:59 +0100 Message-Id: <1109618040.88665.119.camel@klamath.syndrom23.de> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 FreeBSD GNOME Team Port X-Y-GMX-Trusted: 0 Subject: How to depend on wxWidgets? 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, 28 Feb 2005 19:14:14 -0000 --=-DVbcqryIoQStAmXnhjsf Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I am writing a port which depends on wxWidgets. The existence of wx is detected automatically by configure, but I need to know it in advance so I can adjust the pkg-plist for it. Currently I'm doing this: .if defined(WITH_WXPLAYER) || exists(${X11BASE}/bin/wx-config) LIB_DEPENDS+=3D wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2 PLIST_SUB+=3D WXPLAYER=3D .else PLIST_SUB+=3D WXPLAYER=3D"@comment " .endif WITH_WXPLAYER is set via OPTIONS. But I think wx-config can be installed by multiple variants of wxWidgets, and I don't want the user to install wxgtk2 if he has already installed another wx-xxx port. Are there any "best practices" for doing this? Regards, Andreas --=20 --=-DVbcqryIoQStAmXnhjsf Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCI213Yucd7Ow1ygwRAtcqAKCRN6UpMDdGsbeXgd+DuVpRe7MbzQCfco/1 ILMuzAWe5WLpZLRDmY+qChM= =0MHk -----END PGP SIGNATURE----- --=-DVbcqryIoQStAmXnhjsf--