1 DESCRIPTION = "System manager interface library"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "framework-system"
10 inherit autotools-brokensep
15 #PROVIDES by sysman-internal-dev
18 #PROVIDES by sysman-dev
25 #RDEPENDS of sysman-internal-dev (sysman-internal-dev)
26 RDEPENDS_sysman-internal-dev += "sysman"
28 #RDEPENDS of sysman-dev (sysman-dev)
29 RDEPENDS_sysman-dev += "sysman"
34 DEPENDS += "libdevice-node"
35 DEPENDS_append_class-native = " cmake-native"
36 DEPENDS_append_class-target = " cmake-native"
42 chmod -Rf a+rX,u+w,g-w,o-w ${S}
48 bb.build.exec_func('do_prep', d)
59 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
60 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
61 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
62 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
64 cp ${S}/packaging/sysman.manifest .
66 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
67 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
68 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ;
70 -DCMAKE_VERBOSE_MAKEFILE=ON \
71 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
72 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
73 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
74 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
75 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
76 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
77 -DCMAKE_SKIP_RPATH:BOOL=ON \
78 -DBUILD_SHARED_LIBS:BOOL=ON .
88 echo export RPM_BUILD_ROOT=${D}
101 BINDIR=${prefix}/bin \
103 rm -f ${D}${infodir}/dir
104 find ${D} -regex ".*\.la$" | xargs rm -f --
105 find ${D} -regex ".*\.a$" | xargs rm -f --
107 mkdir -p ${D}${sysconfdir}/rc.d/
108 mkdir -p ${D}${sysconfdir}/rc.d/rc3.d/
109 mkdir -p ${D}${sysconfdir}/rc.d/rc5.d/
110 ln -s ${prefix}/bin/regpmon.sh ${D}${sysconfdir}/rc.d/rc3.d/S99regpmon
111 ln -s ${prefix}/bin/regpmon.sh ${D}${sysconfdir}/rc.d/rc5.d/S99regpmon
117 PACKAGES += " sysman-internal-dev "
118 PACKAGES += " sysman-dev "
119 PACKAGES += " sysman "
121 sysman-internal-dev_files = ""
122 sysman-internal-dev_files += "sysman.manifest"
123 sysman-internal-dev_files += "${prefix}/include/sysman/sysman-internal.h"
125 sysman-dev_files = ""
126 sysman-dev_files += "sysman.manifest"
127 sysman-dev_files += "${prefix}/include/sysman/sysman.h"
128 sysman-dev_files += "${prefix}/include/sysman/sysman_managed.h"
129 sysman-dev_files += "${prefix}/include/sysman/SLP_sysman_PG.h"
130 sysman-dev_files += "${prefix}/lib/pkgconfig/*.pc"
131 sysman-dev_files += "${prefix}/lib/*.so"
134 sysman_files += "sysman.manifest"
135 sysman_files += "${prefix}/lib/*.so.*"
136 sysman_files += "${prefix}/bin/*"
137 sysman_files += "${sysconfdir}/rc.d/init.d/*"
138 sysman_files += "${sysconfdir}/rc.d/rc3.d/*"
139 sysman_files += "${sysconfdir}/rc.d/rc5.d/*"
141 FILES_${PN}-internal-dev = "${sysman-internal-dev_files}"
142 FILES_${PN}-dev = "${sysman-dev_files}"
143 FILES_${PN} = "${sysman_files}"
145 PKG_sysman-internal-dev= "sysman-internal-dev"
146 PKG_sysman-dev= "sysman-dev"
149 require libslp-sysman-extraconf.inc