Mon May 25 05:22:37 2020 UTC ()
devel/GConf: allow disabling configure options

Not all packages know these configure options.


(rillig)
diff -r1.2 -r1.3 pkgsrc/devel/GConf/schemas.mk

cvs diff -r1.2 -r1.3 pkgsrc/devel/GConf/schemas.mk (expand / switch to unified diff)

--- pkgsrc/devel/GConf/schemas.mk 2009/06/14 22:57:59 1.2
+++ pkgsrc/devel/GConf/schemas.mk 2020/05/25 05:22:37 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: schemas.mk,v 1.2 2009/06/14 22:57:59 joerg Exp $ 1# $NetBSD: schemas.mk,v 1.3 2020/05/25 05:22:37 rillig Exp $
2# 2#
3# This Makefile fragment is intended to be included by packages that install 3# This Makefile fragment is intended to be included by packages that install
4# GConf schema files. It takes care of registering them in the GConf 4# GConf schema files. It takes care of registering them in the GConf
5# global configuration database. 5# global configuration database.
6# 6#
7# The following variables are automatically defined for free use in packages: 7# The following variables are automatically defined for free use in packages:
8# GCONFTOOL2 - The gconftool-2 binary program. 8# GCONFTOOL2 - The gconftool-2 binary program.
9# GCONF_CONFIG_SOURCE - URI of the global configuration database. 9# GCONF_CONFIG_SOURCE - URI of the global configuration database.
10# GCONF_SCHEMAS_DIR - Directory where .schemas files are installed. 10# GCONF_SCHEMAS_DIR - Directory where .schemas files are installed.
11# 11#
12# The following variables can be defined by a package to register .entries 12# The following variables can be defined by a package to register .entries
13# and .schemas files: 13# and .schemas files:
14# GCONF_ENTRIES - A list of .entries files to register. When using this 14# GCONF_ENTRIES - A list of .entries files to register. When using this
@@ -25,27 +25,27 @@ GCONF_SCHEMAS_MK= # defined @@ -25,27 +25,27 @@ GCONF_SCHEMAS_MK= # defined
25# The gconftool-2 binary program. 25# The gconftool-2 binary program.
26GCONFTOOL2= ${BUILDLINK_PREFIX.GConf}/bin/gconftool-2 26GCONFTOOL2= ${BUILDLINK_PREFIX.GConf}/bin/gconftool-2
27 27
28# Default configuration source (database). 28# Default configuration source (database).
29.if defined(PKG_SYSCONFDIR.GConf) 29.if defined(PKG_SYSCONFDIR.GConf)
30GCONF_CONFIG_SOURCE= xml::${PKG_SYSCONFDIR.GConf}/gconf/gconf.xml.defaults 30GCONF_CONFIG_SOURCE= xml::${PKG_SYSCONFDIR.GConf}/gconf/gconf.xml.defaults
31.else 31.else
32GCONF_CONFIG_SOURCE= xml::${PKG_SYSCONFBASE}/gconf/gconf.xml.defaults 32GCONF_CONFIG_SOURCE= xml::${PKG_SYSCONFBASE}/gconf/gconf.xml.defaults
33.endif 33.endif
34 34
35# Where .schemas files go. 35# Where .schemas files go.
36GCONF_SCHEMAS_DIR= ${BUILDLINK_PREFIX.GConf}/share/gconf/schemas 36GCONF_SCHEMAS_DIR= ${BUILDLINK_PREFIX.GConf}/share/gconf/schemas
37 37
38.if defined(GNU_CONFIGURE) && !empty(GNU_CONFIGURE:M[Yy][Ee][Ss]) 38.if ${GNU_CONFIGURE:Uno:tl} == yes && ${GNU_CONFIGURE_GCONF_SCHEMAS:Uyes:tl} == yes
39CONFIGURE_ARGS+= --disable-schemas-install 39CONFIGURE_ARGS+= --disable-schemas-install
40CONFIGURE_ARGS+= --with-gconf-schema-file-dir=${GCONF_SCHEMAS_DIR:Q} 40CONFIGURE_ARGS+= --with-gconf-schema-file-dir=${GCONF_SCHEMAS_DIR:Q}
41.endif 41.endif
42 42
43.if (defined(GCONF_SCHEMAS) && !empty(GCONF_SCHEMAS)) || \ 43.if (defined(GCONF_SCHEMAS) && !empty(GCONF_SCHEMAS)) || \
44 (defined(GCONF_ENTRIES) && !empty(GCONF_ENTRIES)) 44 (defined(GCONF_ENTRIES) && !empty(GCONF_ENTRIES))
45FILES_SUBST+= GCONFTOOL2=${GCONFTOOL2:Q} 45FILES_SUBST+= GCONFTOOL2=${GCONFTOOL2:Q}
46FILES_SUBST+= GCONF_CONFIG_SOURCE=${GCONF_CONFIG_SOURCE:Q} 46FILES_SUBST+= GCONF_CONFIG_SOURCE=${GCONF_CONFIG_SOURCE:Q}
47FILES_SUBST+= GCONF_ENTRIES=${GCONF_ENTRIES:Q} 47FILES_SUBST+= GCONF_ENTRIES=${GCONF_ENTRIES:Q}
48FILES_SUBST+= GCONF_SCHEMAS=${GCONF_SCHEMAS:Q} 48FILES_SUBST+= GCONF_SCHEMAS=${GCONF_SCHEMAS:Q}
49FILES_SUBST+= GCONF_SCHEMAS_DIR=${GCONF_SCHEMAS_DIR:Q} 49FILES_SUBST+= GCONF_SCHEMAS_DIR=${GCONF_SCHEMAS_DIR:Q}
50INSTALL_TEMPLATES+= ${.CURDIR}/../../devel/GConf/files/install.tmpl 50INSTALL_TEMPLATES+= ${.CURDIR}/../../devel/GConf/files/install.tmpl
51DEINSTALL_TEMPLATES+= ${.CURDIR}/../../devel/GConf/files/deinstall.tmpl 51DEINSTALL_TEMPLATES+= ${.CURDIR}/../../devel/GConf/files/deinstall.tmpl