- Make dbus dependency optional, default on

PR:    	    	       ports/112857
Submitted by:	       Henrik Brix Andersen <henrik at brixandersen.dk>
Approved by:	       Robert Noland <rnoland at 2hip.net> (maintainer)
This commit is contained in:
Rong-En Fan 2007-06-12 23:08:03 +00:00
parent b7ba7d441a
commit 1d061142a2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193374
2 changed files with 18 additions and 6 deletions

View file

@ -18,8 +18,7 @@ COMMENT= Plugins for Beryl Composite/Window Manager
# XXX - Might depends on graphics/libsvg-cairo instead.
LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/beryl.pc:${PORTSDIR}/x11-wm/beryl-core \
${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/beryl.pc:${PORTSDIR}/x11-wm/beryl-core
RUN_DEPENDS= ${BUILD_DEPENDS}
GNU_CONFIGURE= yes
@ -35,4 +34,17 @@ CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
.include <bsd.port.mk>
OPTIONS= DBUS "Enable dbus support" On
.include <bsd.port.pre.mk>
.if defined(WITH_DBUS)
CONFIGURE_ARGS= --enable-dbus
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus
PLIST_SUB= DBUS=""
.else
CONFIGURE_ARGS= --disable-dbus
PLIST_SUB= DBUS="@comment "
.endif
.include <bsd.port.post.mk>

View file

@ -97,9 +97,9 @@ lib/beryl/libimgjpeg.a
lib/beryl/libannotate.so
lib/beryl/libannotate.la
lib/beryl/libannotate.a
lib/beryl/libdbus.so
lib/beryl/libdbus.la
lib/beryl/libdbus.a
%%DBUS%%lib/beryl/libdbus.so
%%DBUS%%lib/beryl/libdbus.la
%%DBUS%%lib/beryl/libdbus.a
share/locale/es/LC_MESSAGES/beryl-plugins.mo
share/locale/fr/LC_MESSAGES/beryl-plugins.mo
share/locale/nl/LC_MESSAGES/beryl-plugins.mo