1 DESCRIPTION = "A power library in SLP C API"
2 HOMEPAGE = "http://nohomepage.org"
10 inherit autotools-brokensep
15 #PROVIDES by capi-system-power
18 #PROVIDES by capi-system-power-dev
19 PROVIDES += "capi-system-power-dev"
23 #RDEPENDS of capi-system-power-dev (${PN}-dev)
24 RDEPENDS_${PN}-dev += "capi-system-power"
28 #DEPENDS of capi-system-power
33 DEPENDS += "system-server"
34 DEPENDS += "capi-base-common"
39 chmod -Rf a+rX,u+w,g-w,o-w ${S}
45 bb.build.exec_func('do_prep', d)
56 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
58 cp ${S}/packaging/capi-system-power.manifest .
59 MAJORVER=`echo 0.1.1 | awk 'BEGIN {FS="."}{print $1}'`
62 -DCMAKE_VERBOSE_MAKEFILE=ON \
63 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
64 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
65 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
66 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
67 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
68 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
69 -DCMAKE_SKIP_RPATH:BOOL=ON \
70 -DBUILD_SHARED_LIBS:BOOL=ON \
71 -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
72 ${EXTRA_OECMAKE} . -DFULLVER=0.1.1 -DMAJORVER=${MAJORVER}
80 export RPM_BUILD_ROOT=${D}
92 BINDIR=${prefix}/bin \
94 rm -f ${D}${infodir}/dir
95 find ${D} -regex ".*\.la$" | xargs rm -f --
96 find ${D} -regex ".*\.a$" | xargs rm -f --
101 pkg_postinst_${PN}() {
104 [ "x$D" == "x" ] && ldconfig
110 [ "x$D" == "x" ] && ldconfig
113 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
114 PACKAGES += " capi-system-power "
115 PACKAGES += " capi-system-power-dev "
117 capi-system-power_files = ""
118 capi-system-power_files += "${prefix}/lib/libcapi-system-power.so.*"
119 MANIFESTFILES_${PN} = "capi-system-power.manifest"
121 capi-system-power-dev_files = ""
122 capi-system-power-dev_files += "${prefix}/include/system/power.h"
123 capi-system-power-dev_files += "${prefix}/lib/pkgconfig/*.pc"
124 capi-system-power-dev_files += "${prefix}/lib/libcapi-system-power.so"
125 MANIFESTFILES_${PN}-dev = "capi-system-power.manifest"
127 FILES_${PN} = "${capi-system-power_files}"
128 FILES_${PN}-dev = "${capi-system-power-dev_files}"
130 PKG_capi-system-power= "capi-system-power"
131 PKG_capi-system-power-dev= "capi-system-power-dev"
133 require capi-system-power-extraconf.inc