Hello po...@!

This diff is to detach dependency of X for dbus.
(my #1-goal is to be able install avahi on X-less router
later)

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/dbus/Makefile,v
retrieving revision 1.31
diff -N -u -p Makefile
--- Makefile    10 Oct 2009 14:30:47 -0000      1.31
+++ Makefile    2 Nov 2009 22:35:52 -0000
@@ -17,14 +17,16 @@ PERMIT_DISTFILES_FTP=       Yes
 PERMIT_PACKAGE_CDROM=  Yes
 PERMIT_PACKAGE_FTP=    Yes
 
-WANTLIB=       ICE X11 Xau Xdmcp SM c expat pthread pthread-stubs xcb
+FLAVORS=       no_x11
+FLAVOR?=       
 
+WANTLIB=       c expat pthread
+
 MASTER_SITES=  ${HOMEPAGE}/releases/dbus/
 
 SEPARATE_BUILD=        simple
 
 USE_LIBTOOL=   Yes
-USE_X11=       Yes
 
 CONFIGURE_STYLE= gnu
 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
@@ -41,6 +43,13 @@ CONFIGURE_ARGS=      --localstatedir=/var \
 #CONFIGURE_ARGS+=      --enable-verbose-mode
 
 FAKE_FLAGS=    sysconfdir=${TRUEPREFIX}/share/examples/dbus
+
+.if ${FLAVOR:L:Mno_x11}
+CONFIGURE_ARGS+= --without-x
+.else
+WANTLIB+=      ICE X11 Xau Xdmcp SM pthread-stubs xcb
+USE_X11=       Yes
+.endif
 
 pre-configure:
        @${SUBST_CMD} ${WRKSRC}/bus/dbus-daemon.1 ${WRKSRC}/tools/dbus-uuidgen.1

Reply via email to