what to use as "global" switch to not build x11 based ports ?

RW list-freebsd-2004 at morbius.sent.com
Sun Oct 29 16:28:52 UTC 2006


On Saturday 28 October 2006 07:39, Andreas Klemm wrote:
> Hi,
>
> a USENET posting of a user, looking for a global make variable
> to prevent building of x11 based software, caused me to look
> how to do it best with FreeBSD. Maybe he came from Gentoo Linux ;-)
>
> At the moment I only found the variable WITHOUT_X11.
> But its only for ports, that can be built optionally with and without
> X11 support. It doesn't hinder directly to built x11 stuff using ports
> collection.

You could just add the following to make.conf

.if ${.CURDIR:M*/x11*}
IGNORE="dont build X11 ports"
.endif

Anything under the x11* categories would be marked as ignore, and anything 
that depends on them would fail to build.



More information about the freebsd-ports mailing list