summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-support/boost/b2-examples_5.0.0.bb23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-support/boost/b2-examples_5.0.0.bb b/meta/recipes-support/boost/b2-examples_5.0.0.bb
new file mode 100644
index 00000000000..ca6166aea0d
--- /dev/null
+++ b/meta/recipes-support/boost/b2-examples_5.0.0.bb
@@ -0,0 +1,23 @@
+SUMMARY = "B2 examples"
+HOMEPAGE = "https://www.bfgroup.xyz/b2/"
+
+LICENSE = "BSL-1.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
+
+SRC_URI = "https://github.com/bfgroup/b2/releases/download/5.0.0/b2-5.0.0.tar.bz2"
+SRC_URI[sha256sum] = "1ef867f7d374345a948baca025ed277dadda05a68439aa383a06aceb9911f7d3"
+
+S = "${WORKDIR}/b2-${PV}"
+
+inherit b2
+
+# TODO built_tool exercises building native code in cross and breaks
+
+B2_DIR = "${S}/example/hello/"
+
+do_install() {
+ install -d ${D}${bindir}
+ install ${B2_DIR}/bin/*/*/*/hello ${D}${bindir}
+}
+
+BBCLASSEXTEND = "native"