1 DESCRIPTION = "Power manager library"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "TO_BE/FILLED_IN"
4 LICENSE = "TO BE FILLED IN"
10 inherit autotools-brokensep
14 #PROVIDES by libslp-pm
17 #PROVIDES by libslp-pm-dev
21 #RDEPENDS of libslp-pm-dev (${PN}-dev)
22 RDEPENDS_${PN}-dev += "libslp-pm"
27 DEPENDS_append_class-native = " cmake-native"
28 DEPENDS_append_class-target = " cmake-native"
32 chmod -Rf a+rX,u+w,g-w,o-w ${S}
34 cp ${S}/packaging/libslp-pm.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 .
79 echo export RPM_BUILD_ROOT=${D}
92 BINDIR=${prefix}/bin \
94 rm -f ${D}${infodir}/dir
95 find ${D} -regex ".*\.la$" | xargs rm -f --
96 find ${D} -regex ".*\.a$" | xargs rm -f --
104 libslp-pm_files += "libslp-pm.manifest"
105 libslp-pm_files += "libslp-pm.manifest"
106 libslp-pm_files += "${prefix}/lib/libpmapi.so.1.2"
108 libslp-pm-dev_files = ""
109 libslp-pm-dev_files += "libslp-pm.manifest"
110 libslp-pm-dev_files += "${prefix}/include/pmapi.h"
111 libslp-pm-dev_files += "${prefix}/include/pmapi_managed.h"
112 libslp-pm-dev_files += "${prefix}/include/SLP_pm_PG.h"
113 libslp-pm-dev_files += "${prefix}/lib/pkgconfig/pmapi.pc"
114 libslp-pm-dev_files += "${prefix}/lib/libpmapi.so"
116 FILES_${PN} = "${libslp-pm_files}"
117 FILES_${PN}-dev = "${libslp-pm-dev_files}"
119 PKG_libslp-pm= "libslp-pm"
120 PKG_libslp-pm-dev= "libslp-pm-dev"
122 require libslp-pm-extraconf.inc