On Tue, May 26, 2009 at 1:09 PM, Erik Trulsson <ertr1...@student.uu.se> wrote:
> On Tue, May 26, 2009 at 08:44:43PM +0900, Randy Bush wrote:
>> >> as so many folk build server-only, there must e a make.conf or whatever
>> >> option to tell ports that you just do not want an x server or any of
>> >> it's 500kg friends.  but i can not seem to find it.
>> > I think you're looking for WITHOUT_X11=yes :)
>>
>> i have that.  i still get a lot of x with some ports.  i will try to
>> keep a watch for which ones.
>
>
> Well, there are many ports which depend unconditionally upon X.
> If you install one of them (or some other port which depends on one of them)
> you will get X, no questions asked.
>
> WITHOUT_X11 is useful for those ports which have an optional dependency upon
> X, but that is all it does.
>
>
> There does not exist any flag which tells the ports-system to refuse to
> build any ports which depend on X, which seems to be what you want.

Something like the following would work as a safety net.

--- /usr/ports/Mk/bsd.xorg.mk.orig      2009-05-26 13:42:52.000000000 +0100
+++ /usr/ports/Mk/bsd.xorg.mk   2009-05-26 13:42:58.000000000 +0100
@@ -28,6 +28,11 @@
 # xserver - there's only one atm, I guess everything can fit into the
port itself

 .if defined(XORG_CAT)
+
+. if defined(WITHOUT_X11)
+IGNORE=                me not want x11
+. endif
+
 # Default variables, common to all new modular xorg ports.
 .if !defined(USE_TGZ)
 USE_BZIP2=     yes

-- 
Florent Thoumie
f...@freebsd.org
FreeBSD Committer
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to