From 1206a34009c1ff08bde075fad6900a87364c3dbc Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Fri, 10 Jan 2020 15:33:17 +0100 Subject: [PATCH] websocketpp: also install examples in a new -examples subpackage Thanks to Khem Raj for the suggestion, the location is similar to the one used by Debian packaging Signed-off-by: Gianfranco Costamagna Signed-off-by: Gianfranco Costamagna Signed-off-by: Khem Raj --- meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb b/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb index 8a2a3e1b8b..4303f24738 100644 --- a/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb +++ b/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb @@ -30,3 +30,12 @@ SRCREV= "c6d7e295bf5a0ab9b5f896720cc1a0e0fdc397a7" S = "${WORKDIR}/git" inherit cmake + +PACKAGES =+ "${PN}-examples" + +FILES_${PN}-examples = "${docdir}" + +do_install_append() { + install -d ${D}${docdir}/${BPN} + cp -R ${S}/examples ${D}${docdir}/${BPN} +}