1 DESCRIPTION = "Sensor framework common library"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/Sensor Framework"
10 inherit autotools-brokensep
14 #PROVIDES by libsf-common
17 #PROVIDES by libsf-common-dev
21 #RDEPENDS of libsf-common-dev (${PN}-dev)
22 RDEPENDS_${PN}-dev += "libsf-common"
26 #DEPENDS of libsf-common
27 DEPENDS_append_class-native = " cmake-native"
33 chmod -Rf a+rX,u+w,g-w,o-w ${S}
35 cp ${S}/packaging/libsf-common.manifest .
40 bb.build.exec_func('do_prep', d)
51 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
52 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
53 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
54 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
57 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
58 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
59 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ;
61 -DCMAKE_VERBOSE_MAKEFILE=ON \
62 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
63 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
64 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
65 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
66 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
67 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
68 -DCMAKE_SKIP_RPATH:BOOL=ON \
69 -DBUILD_SHARED_LIBS:BOOL=ON .
78 echo export RPM_BUILD_ROOT=${D}
90 BINDIR=${prefix}/bin \
92 rm -f ${D}${infodir}/dir
93 find ${D} -regex ".*\.la$" | xargs rm -f --
94 find ${D} -regex ".*\.a$" | xargs rm -f --
96 mkdir -p ${D}${prefix}/share/license
97 cp LICENSE ${D}${prefix}/share/license/libsf-common
103 libsf-common_files = ""
104 libsf-common_files += "libsf-common.manifest"
105 libsf-common_files += "${prefix}/lib/libsf_common.so"
106 libsf-common_files += "${prefix}/share/license/libsf-common"
108 libsf-common-dev_files = ""
109 libsf-common-dev_files += "libsf-common.manifest"
110 libsf-common-dev_files += "${prefix}/include/sf_common/*.h"
111 libsf-common-dev_files += "${prefix}/lib/pkgconfig/sf_common.pc"
113 FILES_${PN} = "${libsf-common_files}"
114 FILES_${PN}-dev = "${libsf-common-dev_files}"
116 PKG_libsf-common= "libsf-common"
117 PKG_libsf-common-dev= "libsf-common-dev"
119 require libsf-common-extraconf.inc