GARNAME = GConf
GARVERSION = 2.14.0
CATEGORIES = platform
DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2
PATCHFILES = PATH_MAX-hack.diff

LIBDEPS = platform/ORBit2 platform/libxml2 platform/gtk+

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

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

CONFIGURE_ARGS = $(DIRPATHS)
BUILD_ARGS = -j1

include ../category.mk

post-install:
	@echo " ==> Configuring cross-prefix GARNOME compatibility..."
	@$(bindir)/gconftool-2 --get-default-source > $(sysconfdir)/gconf/schema-install-source
	if [ -x "`which gconftool-1 > /dev/null`" ]; then \
		echo we have gc1; \
		export GC1=$$(dirname `gconftool-1 --get-default-source | cut -d : -f 3`); \
		echo "xml:readonly:$$GC1/gconf.xml.mandatory" >> $(sysconfdir)/gconf/2/path ; \
		echo "xml:readonly:$$GC1/gconf.xml.defaults" >> $(sysconfdir)/gconf/2/path ; \
	fi
