| @@ -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. |
26 | GCONFTOOL2= ${BUILDLINK_PREFIX.GConf}/bin/gconftool-2 | | 26 | GCONFTOOL2= ${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) |
30 | GCONF_CONFIG_SOURCE= xml::${PKG_SYSCONFDIR.GConf}/gconf/gconf.xml.defaults | | 30 | GCONF_CONFIG_SOURCE= xml::${PKG_SYSCONFDIR.GConf}/gconf/gconf.xml.defaults |
31 | .else | | 31 | .else |
32 | GCONF_CONFIG_SOURCE= xml::${PKG_SYSCONFBASE}/gconf/gconf.xml.defaults | | 32 | GCONF_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. |
36 | GCONF_SCHEMAS_DIR= ${BUILDLINK_PREFIX.GConf}/share/gconf/schemas | | 36 | GCONF_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 |
39 | CONFIGURE_ARGS+= --disable-schemas-install | | 39 | CONFIGURE_ARGS+= --disable-schemas-install |
40 | CONFIGURE_ARGS+= --with-gconf-schema-file-dir=${GCONF_SCHEMAS_DIR:Q} | | 40 | CONFIGURE_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)) |
45 | FILES_SUBST+= GCONFTOOL2=${GCONFTOOL2:Q} | | 45 | FILES_SUBST+= GCONFTOOL2=${GCONFTOOL2:Q} |
46 | FILES_SUBST+= GCONF_CONFIG_SOURCE=${GCONF_CONFIG_SOURCE:Q} | | 46 | FILES_SUBST+= GCONF_CONFIG_SOURCE=${GCONF_CONFIG_SOURCE:Q} |
47 | FILES_SUBST+= GCONF_ENTRIES=${GCONF_ENTRIES:Q} | | 47 | FILES_SUBST+= GCONF_ENTRIES=${GCONF_ENTRIES:Q} |
48 | FILES_SUBST+= GCONF_SCHEMAS=${GCONF_SCHEMAS:Q} | | 48 | FILES_SUBST+= GCONF_SCHEMAS=${GCONF_SCHEMAS:Q} |
49 | FILES_SUBST+= GCONF_SCHEMAS_DIR=${GCONF_SCHEMAS_DIR:Q} | | 49 | FILES_SUBST+= GCONF_SCHEMAS_DIR=${GCONF_SCHEMAS_DIR:Q} |
50 | INSTALL_TEMPLATES+= ${.CURDIR}/../../devel/GConf/files/install.tmpl | | 50 | INSTALL_TEMPLATES+= ${.CURDIR}/../../devel/GConf/files/install.tmpl |
51 | DEINSTALL_TEMPLATES+= ${.CURDIR}/../../devel/GConf/files/deinstall.tmpl | | 51 | DEINSTALL_TEMPLATES+= ${.CURDIR}/../../devel/GConf/files/deinstall.tmpl |