1 DESCRIPTION = "Configuration system library"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/Libraries"
11 inherit manifest autotools-brokensep
16 #PROVIDES by vconf-buxton-dev
17 PROVIDES += "vconf-buxton-dev"
18 # the PROVIDES rules is ignore "vconf-dev "
19 PROVIDES += "vconf-dev"
20 RPROVIDES_vconf-buxton-dev += "vconf-dev"
23 #PROVIDES by vconf-buxton-keys-dev
24 PROVIDES += "vconf-buxton-keys-dev"
25 # the PROVIDES rules is ignore "vconf-keys-dev "
26 PROVIDES += "vconf-keys-dev"
27 RPROVIDES_vconf-buxton-keys-dev += "vconf-keys-dev"
30 #PROVIDES by vconf-buxton
31 # the PROVIDES rules is ignore "vconf "
33 RPROVIDES_vconf-buxton += "vconf"
37 #RDEPENDS of vconf-buxton-dev (${PN}-dev)
38 RDEPENDS_${PN}-dev += "vconf-buxton-keys-dev"
39 RDEPENDS_${PN}-dev += "vconf-buxton"
41 #RDEPENDS of vconf-buxton-keys-dev (${PN}-keys-dev)
42 RDEPENDS_${PN}-keys-dev += "vconf-buxton"
43 RDEPENDS_${PN}-keys-dev += "vconf-internal-keys-dev"
45 #RDEPENDS of vconf-buxton (${PN})
46 RDEPENDS_${PN} += "glibc"
47 RDEPENDS_${PN} += "util-linux"
51 #DEPENDS of vconf-buxton
52 DEPENDS += "vconf-internal-keys"
60 chmod -Rf a+rX,u+w,g-w,o-w ${S}
61 #setup -q -n vconf-buxton-0.3
62 cp ${S}/packaging/vconf-buxton.manifest .
67 bb.build.exec_func('do_prep', d)
78 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
82 -DCMAKE_VERBOSE_MAKEFILE=ON \
83 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
84 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
85 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
86 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
87 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
88 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
89 -DCMAKE_SKIP_RPATH:BOOL=ON \
90 -DBUILD_SHARED_LIBS:BOOL=ON \
91 -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
92 ${EXTRA_OECMAKE} -DLIBNAME:STRING=vconf -DTOOLNAME:STRING=vconftool .
100 export RPM_BUILD_ROOT=${D}
112 BINDIR=${prefix}/bin \
114 rm -f ${D}${infodir}/dir
115 find ${D} -regex ".*\.la$" | xargs rm -f --
116 find ${D} -regex ".*\.a$" | xargs rm -f --
117 mv ${D}${systemd_unitdir}/system/vconf-buxton-setup.service ${D}${systemd_unitdir}/system/vconf-setup.service
118 mkdir -p ${D}${systemd_unitdir}/system/basic.target.wants
119 ln -sf ../vconf-setup.service ${D}${systemd_unitdir}/system/basic.target.wants/
124 pkg_postinst_${PN}() {
127 [ "x$D" == "x" ] && ldconfig
128 vconf-buxton-init-from-vconf.sh
135 [ "x$D" == "x" ] && ldconfig
139 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
140 PACKAGES += " vconf-buxton-dev "
141 PACKAGES += " vconf-buxton-keys-dev "
142 PACKAGES += " vconf-buxton "
144 vconf-buxton-dev_files = ""
145 vconf-buxton-dev_files += "${prefix}/include/vconf/vconf.h"
146 vconf-buxton-dev_files += "${prefix}/include/vconf/vconf-buxton.h"
147 vconf-buxton-dev_files += "${prefix}/lib/pkgconfig/vconf.pc"
148 vconf-buxton-dev_files += "${prefix}/lib/libvconf.so"
149 MANIFESTFILES_${PN}-dev = "vconf-buxton.manifest"
151 vconf-buxton-keys-dev_files = ""
152 vconf-buxton-keys-dev_files += "${prefix}/include/vconf/vconf-keys.h"
153 vconf-buxton-keys-dev_files += "${prefix}/include/vconf/vconf-buxton-keys.h"
154 MANIFESTFILES_${PN}-keys-dev = "vconf-buxton.manifest"
156 vconf-buxton_files = ""
157 vconf-buxton_files += "${prefix}/bin/vconftool"
158 vconf-buxton_files += "${prefix}/bin/vconf-buxton-init-from-vconf.sh"
159 vconf-buxton_files += "${prefix}/bin/vconf-buxton-restore-mem-layer.sh"
160 vconf-buxton_files += "${prefix}/bin/vconf-buxton-backup-mem-layer.sh"
161 vconf-buxton_files += "${prefix}/lib/libvconf.so.*"
162 vconf-buxton_files += "${systemd_unitdir}/system/basic.target.wants/vconf-setup.service"
163 vconf-buxton_files += "${systemd_unitdir}/system/vconf-setup.service"
164 MANIFESTFILES_${PN} = "vconf-buxton.manifest"
166 FILES_${PN}-dev = "${vconf-buxton-dev_files}"
167 FILES_${PN}-keys-dev = "${vconf-buxton-keys-dev_files}"
168 FILES_${PN} = "${vconf-buxton_files}"
170 PKG_vconf-buxton-dev= "vconf-buxton-dev"
171 PKG_vconf-buxton-keys-dev= "vconf-buxton-keys-dev"
172 PKG_vconf-buxton= "vconf-buxton"
174 require vconf-buxton-extraconf.inc