1 DESCRIPTION = "A System Information library in SLP C API"
2 HOMEPAGE = "http://nohomepage.org"
10 inherit autotools-brokensep
14 #PROVIDES by capi-system-info-dev
17 #PROVIDES by capi-system-info
21 #RDEPENDS of capi-system-info-dev (capi-${PN}-dev)
22 RDEPENDS_capi-${PN}-dev += "capi-system-info"
26 #DEPENDS of capi-system-info
27 DEPENDS_append_class-native = " cmake-native"
28 DEPENDS_append_class-target = " cmake-native"
31 DEPENDS += "iniparser"
34 DEPENDS += "sound-manager"
39 chmod -Rf a+rX,u+w,g-w,o-w ${S}
41 cp ${S}/packaging/capi-system-info.manifest .
46 bb.build.exec_func('do_prep', d)
57 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 -I%_fmoddir}" ; export FFLAGS ;
60 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
62 MAJORVER=`echo 0.2.0 | awk 'BEGIN {FS="."}{print $1}'`
64 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
65 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
66 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ;
68 -DCMAKE_VERBOSE_MAKEFILE=ON \
69 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
70 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
71 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
72 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
73 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
74 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
75 -DCMAKE_SKIP_RPATH:BOOL=ON \
76 -DBUILD_SHARED_LIBS:BOOL=ON . -DFULLVER=0.2.0 -DMAJORVER=${MAJORVER} -DENABLE_WAYLAND=TRUE
85 echo export RPM_BUILD_ROOT=${D}
97 BINDIR=${prefix}/bin \
99 rm -f ${D}${infodir}/dir
100 find ${D} -regex ".*\.la$" | xargs rm -f --
101 find ${D} -regex ".*\.a$" | xargs rm -f --
103 cp -f script/make_info_file.sh ${D}${sysconfdir}/make_info_file.sh
108 PACKAGES += " capi-system-info-dev "
109 PACKAGES += " capi-system-info "
111 capi-system-info-dev_files = ""
112 capi-system-info-dev_files += "capi-system-info.manifest"
113 capi-system-info-dev_files += "${prefix}/include/system/system_info.h"
114 capi-system-info-dev_files += "${prefix}/lib/pkgconfig/*.pc"
115 capi-system-info-dev_files += "${prefix}/lib/libcapi-system-info.so"
117 capi-system-info_files = ""
118 capi-system-info_files += "capi-system-info.manifest"
119 capi-system-info_files += "${prefix}/lib/libcapi-system-info.so.*"
120 capi-system-info_files += "${sysconfdir}/make_info_file.sh"
121 capi-system-info_files += "system-info.manifest"
123 FILES_${PN}-dev = "${capi-system-info-dev_files}"
124 FILES_${PN} = "${capi-system-info_files}"
126 PKG_capi-system-info-dev= "capi-system-info-dev"
127 PKG_capi-system-info= "capi-system-info"
129 require system-info-extraconf.inc