blob: 1e29bd9bb07fd79e1d1054055c0ea6886139dee3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "GNOME configuration system"
Brad Bishop64c979e2019-11-04 13:55:29 -05002DESCRIPTION = "GConf is a system for storing application preferences. \
3It is intended for user preferences; not configuration of something like \
4Apache, or arbitrary data storage."
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005SECTION = "x11/gnome"
Andrew Geissler6ce62a22020-11-30 19:58:47 -06006HOMEPAGE = "https://gitlab.gnome.org/Archive/gconf"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00007LICENSE = "LGPL-2.0-or-later"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
9
Patrick Williamse760df82023-05-26 11:10:49 -050010DEPENDS = "glib-2.0 glib-2.0-native dbus dbus-glib libxml2 intltool-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
Patrick Williamsac13d5f2023-11-24 18:59:46 -060012GNOMEBASEBUILDCLASS = "autotools"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050013inherit gnomebase gtk-doc gettext gobject-introspection gio-module-cache
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
15SRC_URI = "${GNOME_MIRROR}/GConf/${@gnome_verdir("${PV}")}/GConf-${PV}.tar.xz;name=archive \
16 file://remove_plus_from_invalid_characters_list.patch \
17 file://unable-connect-dbus.patch \
Brad Bishop316dfdd2018-06-25 12:45:53 -040018 file://create_config_directory.patch \
Andrew Geissler635e0e42020-08-21 15:58:33 -050019 file://python3.patch \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020"
21
22SRC_URI[archive.md5sum] = "2b16996d0e4b112856ee5c59130e822c"
23SRC_URI[archive.sha256sum] = "1912b91803ab09a5eed34d364bf09fe3a2a9c96751fde03a4e0cfa51a04d784c"
24
25S = "${WORKDIR}/GConf-${PV}"
26
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027EXTRA_OECONF = "--enable-shared --disable-static \
28 --disable-orbit --with-openldap=no --disable-gtk"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029
Brad Bishop19323692019-04-05 15:28:33 -040030PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}"
31# We really don't want Polkit for native
Patrick Williams213cb262021-08-07 19:21:33 -050032PACKAGECONFIG:class-native = ""
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033
Brad Bishop19323692019-04-05 15:28:33 -040034PACKAGECONFIG[polkit] = "--enable-defaults-service,--disable-defaults-service,polkit"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035PACKAGECONFIG[debug] = "--enable-debug=yes, --enable-debug=minimum"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036
Patrick Williams213cb262021-08-07 19:21:33 -050037do_install:append() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050038 # this directory need to be created to avoid an Error 256 at gdm launch
39 install -d ${D}${sysconfdir}/gconf/gconf.xml.system
40
41 # this stuff is unusable
42 rm -f ${D}${libdir}/GConf/*/*.*a
43 rm -f ${D}${libdir}/gio/*/*.*a
44}
45
Patrick Williams213cb262021-08-07 19:21:33 -050046do_install:append:class-native() {
Patrick Williamsc124f4f2015-09-15 14:41:29 -050047 create_wrapper ${D}/${bindir}/gconftool-2 \
48 GCONF_BACKEND_DIR=${STAGING_LIBDIR_NATIVE}/GConf/2
49}
50
Patrick Williams213cb262021-08-07 19:21:33 -050051FILES:${PN} += "${libdir}/GConf/* \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050052 ${libdir}/gio/*/*.so \
53 ${datadir}/polkit* \
54 ${datadir}/dbus-1/services/*.service \
55 ${datadir}/dbus-1/system-services/*.service \
56 "
Patrick Williams213cb262021-08-07 19:21:33 -050057RDEPENDS:${PN} = "python3-xml"
Andrew Geissler635e0e42020-08-21 15:58:33 -050058
Patrick Williams213cb262021-08-07 19:21:33 -050059FILES:${PN}-dev += "${datadir}/sgml/gconf/gconf-1.0.dtd"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050060
61BBCLASSEXTEND = "native"