BBCLASSEXTEND = ""
PROVIDES = ""
-#PROVIDES by sensor
+#PROVIDES by sensor
-#PROVIDES by sensor-dev
+#PROVIDES by sensor-dev
RDEPENDS = ""
DEPENDS = ""
-#DEPENDS of sensor
+#DEPENDS of sensor
DEPENDS += "libsf-common"
DEPENDS_append_class-native = " cmake-native"
DEPENDS_append_class-target = " cmake-native"
chmod -Rf a+rX,u+w,g-w,o-w ${S}
#setup -q -n sensor-0.5.27
cp ${S}/packaging/sensor.manifest ${S}/packaging/sensor-devel.manifest .
-
-
+
+
}
do_patch_append() {
bb.build.exec_func('do_prep', d)
LANG=C
export LANG
unset DISPLAY
- CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
- CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
- FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
- LD_AS_NEEDED=1; export LD_AS_NEEDED ;
-
-
- CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
- CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
- FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ;
+ CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
+ CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
+ FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
+ CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
+ FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ;
cmake \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
-DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON .
-
-
+
+
make -j16
-
-
-
+
+
+
}
do_install() {
LANG=C
export LANG
unset DISPLAY
- rm -rf ${D}
- mkdir -p ${D}
-
-
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
oe_runmake \
DESTDIR=${D} \
INSTALL_ROOT=${D} \
BINDIR=${prefix}/bin \
- install
- rm -f ${D}${infodir}/dir
- find ${D} -regex ".*\.la$" | xargs rm -f --
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
-
-
+
+
}
pkg_postinst_${PN}() {
/sbin/ldconfig
}
+PACKAGES = "${PN}-dbg ${PN}-doc"
PACKAGES += " sensor "
PACKAGES += " sensor-dev "
sensor-dev_files += "${prefix}/lib/libsensor.so"
sensor-dev_files += "${prefix}/lib/pkgconfig/sensor.pc"
-FILES_${PN} = "${sensor_files}"
-FILES_${PN}-dev = "${sensor-dev_files}"
+FILES_sensor = "${sensor_files}"
+FILES_sensor-dev = "${sensor-dev_files}"
PKG_sensor= "sensor"
PKG_sensor-dev= "sensor-dev"
BBCLASSEXTEND = ""
PROVIDES = ""
-#PROVIDES by capi-system-sensor-dev
+#PROVIDES by capi-system-sensor-dev
-#PROVIDES by capi-system-sensor
+#PROVIDES by capi-system-sensor
RDEPENDS = ""
DEPENDS = ""
-#DEPENDS of capi-system-sensor
+#DEPENDS of capi-system-sensor
DEPENDS_append_class-native = " cmake-native"
DEPENDS_append_class-target = " cmake-native"
DEPENDS += "libslp-sensor"
chmod -Rf a+rX,u+w,g-w,o-w ${S}
#setup -q
cp ${S}/packaging/capi-system-sensor.manifest .
-
-
-
+
+
+
}
do_patch_append() {
bb.build.exec_func('do_prep', d)
LANG=C
export LANG
unset DISPLAY
- CFLAGS="-O2 -g" ; export CFLAGS ;
- CXXFLAGS="${CXXFLAGS:--O2 -g}" ; export CXXFLAGS ;
- FFLAGS="${FFLAGS:--O2 -g -I%_fmoddir}" ; export FFLAGS ;
- LD_AS_NEEDED=1; export LD_AS_NEEDED ;
-
+ CFLAGS="-O2 -g" ; export CFLAGS ;
+ CXXFLAGS="${CXXFLAGS:--O2 -g}" ; export CXXFLAGS ;
+ FFLAGS="${FFLAGS:--O2 -g -I%_fmoddir}" ; export FFLAGS ;
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
MAJORVER=`echo 0.1.17 | awk 'BEGIN {FS="."}{print $1}'`
-
- CFLAGS="${CFLAGS:--O2 -g}" ; export CFLAGS ;
- CXXFLAGS="${CXXFLAGS:--O2 -g}" ; export CXXFLAGS ;
- FFLAGS="${FFLAGS:--O2 -g}" ; export FFLAGS ;
+
+ CFLAGS="${CFLAGS:--O2 -g}" ; export CFLAGS ;
+ CXXFLAGS="${CXXFLAGS:--O2 -g}" ; export CXXFLAGS ;
+ FFLAGS="${FFLAGS:--O2 -g}" ; export FFLAGS ;
cmake \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
-DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON . -DFULLVER=0.1.17 -DMAJORVER=${MAJORVER}
-
-
+
+
make -j16
-
-
-
+
+
+
}
do_install() {
LANG=C
export LANG
unset DISPLAY
- rm -rf ${D}
- mkdir -p ${D}
-
rm -rf ${D}
-
+ mkdir -p ${D}
+
+ rm -rf ${D}
+
oe_runmake \
DESTDIR=${D} \
INSTALL_ROOT=${D} \
BINDIR=${prefix}/bin \
- install
- rm -f ${D}${infodir}/dir
- find ${D} -regex ".*\.la$" | xargs rm -f --
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
-
+
mkdir -p ${D}/usr/share/license
cp LICENSE ${D}/usr/share/license/capi-system-sensor
-
-
-}
+
+}
+PACKAGES = "${PN}-dbg ${PN}-doc"
PACKAGES += " capi-system-sensor-dev "
PACKAGES += " capi-system-sensor "
capi-system-sensor_files += "capi-system-sensor.manifest"
capi-system-sensor_files += "${prefix}/lib/libcapi-system-sensor.so.*"
-FILES_${PN}-dev = "${capi-system-sensor-dev_files}"
-FILES_${PN} = "${capi-system-sensor_files}"
+FILES_capi-system-sensor-dev = "${capi-system-sensor-dev_files}"
+FILES_capi-system-sensor = "${capi-system-sensor_files}"
+
+FILES_sensor = ""
PKG_capi-system-sensor-dev= "capi-system-sensor-dev"
PKG_capi-system-sensor= "capi-system-sensor"