1 DESCRIPTION = "A Sensor library in TIZEN C API"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "framework/system"
10 inherit autotools-brokensep
15 #PROVIDES by capi-system-sensor-dev
16 PROVIDES += "capi-system-sensor-dev"
19 #PROVIDES by capi-system-sensor
23 #RDEPENDS of capi-system-sensor-dev (${PN}-dev)
24 RDEPENDS_${PN}-dev += "capi-system-sensor"
28 #DEPENDS of capi-system-sensor
30 DEPENDS += "libslp-sensor"
36 chmod -Rf a+rX,u+w,g-w,o-w ${S}
38 cp ${S}/packaging/capi-system-sensor.manifest .
44 bb.build.exec_func('do_prep', d)
55 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
57 MAJORVER=`echo 0.1.17 | awk 'BEGIN {FS="."}{print $1}'`
60 -DCMAKE_VERBOSE_MAKEFILE=ON \
61 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
62 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
63 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
64 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
65 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
66 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
67 -DCMAKE_SKIP_RPATH:BOOL=ON \
68 -DBUILD_SHARED_LIBS:BOOL=ON \
69 -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
70 ${EXTRA_OECMAKE} . -DFULLVER=0.1.17 -DMAJORVER=${MAJORVER}
80 export RPM_BUILD_ROOT=${D}
93 BINDIR=${prefix}/bin \
95 rm -f ${D}${infodir}/dir
96 find ${D} -regex ".*\.la$" | xargs rm -f --
97 find ${D} -regex ".*\.a$" | xargs rm -f --
99 mkdir -p ${D}/usr/share/license
100 cp LICENSE ${D}/usr/share/license/capi-system-sensor
105 pkg_postinst_${PN}() {
108 [ "x$D" == "x" ] && ldconfig
114 [ "x$D" == "x" ] && ldconfig
117 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
118 PACKAGES += " capi-system-sensor-dev "
119 PACKAGES += " capi-system-sensor "
121 capi-system-sensor-dev_files = ""
122 capi-system-sensor-dev_files += "${prefix}/include/system/sensors.h"
123 capi-system-sensor-dev_files += "${prefix}/lib/pkgconfig/*.pc"
124 capi-system-sensor-dev_files += "${prefix}/lib/libcapi-system-sensor.so"
125 capi-system-sensor-dev_files += "/usr/share/license/capi-system-sensor"
126 MANIFESTFILES_${PN}-dev = "capi-system-sensor.manifest"
128 capi-system-sensor_files = ""
129 capi-system-sensor_files += "${prefix}/lib/libcapi-system-sensor.so.*"
130 MANIFESTFILES_${PN} = "capi-system-sensor.manifest"
132 FILES_${PN}-dev = "${capi-system-sensor-dev_files}"
133 FILES_${PN} = "${capi-system-sensor_files}"
135 PKG_capi-system-sensor-dev= "capi-system-sensor-dev"
136 PKG_capi-system-sensor= "capi-system-sensor"
138 require capi-system-sensor-extraconf.inc