diff options
-rw-r--r-- | recipes-extended/libvmi/libvmi_git.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-extended/libvmi/libvmi_git.bb b/recipes-extended/libvmi/libvmi_git.bb new file mode 100644 index 00000000..a746638f --- /dev/null +++ b/recipes-extended/libvmi/libvmi_git.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | DESCRIPTION = "An introspection library, written in C, focused on reading \ | ||
2 | and writing memory from virtual machines (VM's)." | ||
3 | HOMEPAGE = "https://github.com/libvmi/libvmi" | ||
4 | LICENSE = "LGPLv3" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02" | ||
6 | SECTION = "console/tools" | ||
7 | PV = "0.12.0" | ||
8 | |||
9 | DEPENDS = "libvirt libcheck bison fuse" | ||
10 | |||
11 | SRC_URI = "git://github.com/libvmi/libvmi.git \ | ||
12 | " | ||
13 | |||
14 | SRCREV = "6934e8a4758018983ec53ec791dd14a7d6ac31a9" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | inherit autotools-brokensep pkgconfig | ||
19 | |||
20 | # Noramlly dynamic libs would be of the form libXX.so.1.0.0 in which case | ||
21 | # bitbake should be able to properly populate the -dev package and the main | ||
22 | # packages. Since libvmi uses the form libXX.1.0.0.so it breaks this automatic | ||
23 | # packaging so we need to be more explicit about what goes where. | ||
24 | FILES_${PN} += "${libdir}/libvmi-0.9.so" | ||
25 | FILES_${PN}-dev = "${includedir} ${libdir}/${BPN}.so ${libdir}/*.la \ | ||
26 | ${libdir}/*.o ${libdir}/pkgconfig ${datadir}/pkgconfig \ | ||
27 | ${datadir}/aclocal ${base_libdir}/*.o \ | ||
28 | ${libdir}/${BPN}/*.la ${base_libdir}/*.la" | ||
29 | |||
30 | PACKAGECONFIG ??= "json-c" | ||
31 | PACKAGECONFIG[xen] = "--enable-xen,--disable-xen,xen," | ||
32 | PACKAGECONFIG[json-c] = ",,json-c," | ||
33 | |||
34 | # We include a sample conf file to which we have added | ||
35 | do_install_append () { | ||
36 | mkdir ${D}${sysconfdir} | ||
37 | cp etc/*.conf ${D}${sysconfdir} | ||
38 | } | ||
39 | |||
40 | # Construction of grammar.h is not parallel safe. | ||
41 | PARALLEL_MAKE = "-j1" | ||