GARNAME = dbus
GARVERSION = 0.60
CATEGORIES = freedesktop
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz

MASTER_SITES = http://dbus.freedesktop.org/releases/

LIBDEPS = bootstrap/expat platform/glib platform/gtk+ platform/libxml2

DESCRIPTION = dbus
define BLURB
 #FIXME: blurb goes here
endef

CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS = $(WORKSRC)/Makefile
INSTALL_SCRIPTS = $(WORKSRC)/Makefile

CONFIGURE_ARGS = $(DIRPATHS) --enable-glib --enable-gtk

# python plugin requires python >= 2.4
CONFIGURE_ARGS += $(shell if test "$(shell $(PYTHON) -V 2>&1 | grep 2.4)" ; \
then echo " --enable-python"; \
else echo " --disable-python"; fi)

# build mono plugin using the mono stack from GARNOME
LIBDEPS += $(shell if test -e $(libdir)/pkgconfig/mono.pc; then echo " mono/gtk-sharp1.0"; fi )

CONFIGURE_ARGS += --disable-mono --disable-mono_docs
CONFIGURE_ARGS += $(shell if test -e $(libdir)/pkgconfig/mono.pc; \
then echo " --enable-mono"; fi )
CONFIGURE_ARGS += $(shell if test -e $(libdir)/pkgconfig/mono_docs.pc; \
then echo " --enable-mono_docs"; fi )

BUILD_ARGS = -j1

include ../category.mk

CC := $(shell echo $(CC) | sed -e 's/ccache //g')
CXX := $(shell echo $(CXX) | sed -e 's/ccache //g')

# [hack] the dbus test suite doesn't compile on FC3/4.
CONFIGURE_ARGS := $(shell echo $(CONFIGURE_ARGS) | sed 's,--enable-tests,--disable-tests,')
