a2c383d887
* backends/markup-tree.c (markup_entry_get_value): fix a logic error causing us to deref a null pointer, reported by Brian Alexander Quistorff. * configure.in: fix gtk-doc version check. * configure.in: Added Belarusian to ALL_LINGUAS. * gconf/gconf-internals.c (gconf_value_list_to_primitive_list_destructive): fix using the wrong type (value->type not value->list_type) in an error message, #96210. * gconf/gconf-internals.c (subst_variables): patch from Benn Vosseteig fixing a crash with a long path to $HOME. * doc/gconf/gconf.sgml, doc/gconf-1.0.dtd: Some additions to match the full range of schema elements curently accepted by gconftool. Supposedly complete now. * doc/Makefile.am: change the gconf-1.0.dtd install location to $(datadir)/sgml/gconf which sounds more standards compliant. * backends/markup-backend.c (resolve_address): add FIXME about. Changes in the package: * Honor PKG_SYSCONFDIR, maintaining the database inside it (PLIST do not need to care about files in etc/gconf.xml.defaults any more). * Provide a schemas.mk file that is used to automatically register .schemas files in the database. * Add a patch to handle schema deinstallation. Reviewed by wiz.
52 lines
1.9 KiB
Makefile
52 lines
1.9 KiB
Makefile
# $NetBSD: schemas.mk,v 1.1 2003/02/14 20:04:07 jmmv Exp $
|
|
#
|
|
# This Makefile fragment is intended to be included by packages that install
|
|
# GConf2 schema files. It takes care of registering them in the GConf2
|
|
# global configuration database.
|
|
#
|
|
# The following variables are automatically defined for free use in packages:
|
|
# GCONFTOOL2 - The gconftool-2 binary program.
|
|
# GCONF2_CONFIG_SOURCE - URI of the global configuration database.
|
|
# GCONF2_SCHEMAS_DIR - Directory where .schemas files are installed.
|
|
#
|
|
# The following variables can be defined by a package to register .schemas
|
|
# files:
|
|
# GCONF2_SCHEMAS - A list of .schemas files to register. When using this
|
|
# variable, packages need to be fixed to not register
|
|
# them and to install those files to GCONF2_SCHEMAS_DIR.
|
|
#
|
|
|
|
.if !defined(GCONF2_SCHEMAS_MK)
|
|
GCONF2_SCHEMAS_MK= # defined
|
|
|
|
# The gconftool-2 binary program.
|
|
GCONFTOOL2= ${BUILDLINK_PREFIX.GConf2}/bin/gconftool-2
|
|
|
|
# Default configuration source (database).
|
|
.if defined(PKG_SYSCONFDIR.GConf2)
|
|
GCONF2_CONFIG_SOURCE= xml::${PKG_SYSCONFDIR.GConf2}/gconf/gconf.xml.defaults
|
|
.else
|
|
GCONF2_CONFIG_SOURCE= xml::${PKG_SYSCONFBASE}/gconf/gconf.xml.defaults
|
|
.endif
|
|
|
|
# Where .schemas files go.
|
|
GCONF2_SCHEMAS_DIR= ${BUILDLINK_PREFIX.GConf2}/share/gconf/schemas
|
|
|
|
.if defined(GNU_CONFIGURE) && !empty(GNU_CONFIGURE:M[Yy][Ee][Ss])
|
|
CONFIGURE_ARGS+= --disable-schemas-install
|
|
CONFIGURE_ARGS+= --with-gconf-schema-file-dir=${GCONF2_SCHEMAS_DIR}
|
|
.endif
|
|
|
|
.if !empty(GCONF2_SCHEMAS)
|
|
FILES_SUBST+= GCONFTOOL2="${GCONFTOOL2}"
|
|
FILES_SUBST+= GCONF2_CONFIG_SOURCE="${GCONF2_CONFIG_SOURCE}"
|
|
FILES_SUBST+= GCONF2_SCHEMAS="${GCONF2_SCHEMAS}"
|
|
FILES_SUBST+= GCONF2_SCHEMAS_DIR="${GCONF2_SCHEMAS_DIR}"
|
|
INSTALL_EXTRA_TMPL+= ../../devel/GConf2/files/install.tmpl
|
|
DEINSTALL_EXTRA_TMPL+= ../../devel/GConf2/files/deinstall.tmpl
|
|
USE_PKGINSTALL= YES
|
|
.endif
|
|
|
|
.include "../../devel/GConf2/buildlink2.mk"
|
|
|
|
.endif # GCONF2_SCHEMAS_MK
|