? about DEPENDS_ARGS

Kris Kennaway kris at obsecurity.org
Fri Nov 3 07:52:24 UTC 2006


On Thu, Nov 02, 2006 at 05:15:45PM -0600, Paul Schmehl wrote:
> I'm working on a new port.  One of the dependencies is net/wireshark.  I 
> noticed that net/wireshark can be build without x11 support.  If you build 
> it normally, it uses WANT_GNOME=YES, USE_GNOME=gnometarget.  This leads to 
> a config option of building with gtk12 or gtk2 (the default).
> 
> One of the config options is --without_x11.
> 
> So, for those who don't use gnome, should the port be built without x11? 
> And if so, can I do anything about that in my port?
> 
> I was thinking of something like this:
> 
> OPTIONS=	WIRESHARK "Build wireshark without x11 support" off
> 
> .if defined(WITH_WIRESHARK)
> RUN_DEPENDS+=	wireshark:${PORTSDIR}/net/wireshark
> DEPENDS_ARGS=	--without_x11
> .else
> RUN_DEPENDS+=	wireshark:${PORTSDIR}/net/wireshark
> .endif

This won't work...think about what happens if the dependency is already
installed.  Perhapd DEPENDS_ARGS just needs to be removed.

Kris
-------------- 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/20061103/bc751cdd/attachment.pgp


More information about the freebsd-ports mailing list