@@ -1,19 +1,39 @@
# -*- mode:python; -*-
SUMMARY = "Babeltrace - Trace Format Babel Tower"
-DESCRIPTION = "Babeltrace provides trace read and write libraries in host side, as well as a trace converter, which used to convert LTTng 2.0 traces into human-readable log."
+DESCRIPTION = "Babeltrace provides trace read and write libraries in host side,\
+ as well as a trace converter, which used to convert LTTng 2.0 traces \
+ into human-readable log."
HOMEPAGE = "http://www.efficios.com/babeltrace/"
LICENSE = "MIT & GPLv2"
RECIPE_TYPES = "machine sdk"
-inherit autotools-autoreconf pkgconfig make-vpath
+inherit autotools-autoreconf pkgconfig make-vpath auto-package-libs
SRC_URI = "http://www.efficios.com/files/babeltrace/babeltrace-${PV}.tar.bz2"
-DEPENDS += "libuuid libpopt libgmodule ${DEPENDS_LIBC}"
+DEPENDS += "libuuid libpopt libgmodule-2.0 ${DEPENDS_LIBC}"
+AUTO_PACKAGE_LIBS = "babeltrace babeltrace-ctf-metadata babeltrace-ctf-text \
+ babeltrace-ctf babeltrace-dummy"
+AUTO_PACKAGE_LIBS_DEV_DEPENDS += "libc libdl libglib-2.0 libgmodule-2.0 libpcre \
+ libpopt libpthread"
+AUTO_PACKAGE_LIBS_RDEPENDS += "libc libdl libglib-2.0 libgmodule-2.0 libpcre \
+ libpopt libpthread"
DEPENDS_LIBC = "librt"
DEPENDS_LIBC:HOST_LIBC_mingw = ""
-RDEPENDS_${PN} += "libgmodule libpopt libuuid libpcre libpthread libc libglib libdl ${DEPENDS_LIBC}"
-
-PACKAGES = "${PN}-dbg ${PN}-doc ${PN} ${PN}-dev ${PN}-locale"
-FILES_${PN} += "${libdir}/*.so"
+DEPENDS_${PN} += "libbabeltrace libbabeltrace-ctf \
+ libbabeltrace-ctf-metadata libbabeltrace-ctf-text \
+ libbabeltrace-dummy libc libdl libglib-2.0 libgmodule-2.0 \
+ libpcre libpopt libpthread libuuid"
+RDEPENDS_${PN} += "libgmodule-2.0 libpopt libuuid libpcre libpthread libc \
+ libglib-2.0 libdl ${DEPENDS_LIBC} libbabeltrace libbabeltrace-ctf \
+ libbabeltrace-ctf-metadata libbabeltrace-ctf-text \
+ libbabeltrace-dummy"
+DEPENDS_${PN}-libbabeltrace-ctf-metadata += "libbabeltrace"
+RDEPENDS_${PN}-libbabeltrace-ctf-metadata += "libbabeltrace"
+DEPENDS_${PN}-libbabeltrace-ctf += "libbabeltrace libuuid"
+RDEPENDS_${PN}-libbabeltrace-ctf += "libbabeltrace libuuid"
+DEPENDS_${PN}-libbabeltrace-ctf-text += "libbabeltrace libbabeltrace-ctf libuuid"
+RDEPENDS_${PN}-libbabeltrace-ctf-text += "libbabeltrace libbabeltrace-ctf libuuid"
+DEPENDS_${PN}-libbabeltrace-dummy += "libbabeltrace"
+RDEPENDS_${PN}-libbabeltrace-dummy += "libbabeltrace"