Browse Source

muparser: Add recipe and ptest support

Tested on VisionFive 2 and showed output 'Test passed (569 expressions)'.

Signed-off-by: Jun Yuan Tan <junyuan.tan@starfivetech.com>
Jun Yuan Tan 8 months ago
parent
commit
6c8db54cb7

+ 3 - 0
recipes-extended/muparser/muparser/run-ptest

@@ -0,0 +1,3 @@
+#! /bin/sh
+
+./t_ParserTest

+ 25 - 0
recipes-extended/muparser/muparser_2.3.2.bb

@@ -0,0 +1,25 @@
+SUMMARY = "Fast Math Parser Library"
+HOMEPAGE = "http://beltoforion.de/article.php?a=muparser"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://License.txt;md5=98f3ad1a0193387fc84b0101833605c8"
+
+SRC_URI = " \
+	git://github.com/beltoforion/muparser.git;branch=master;protocol=https \
+	file://run-ptest \
+	"
+SRCREV = "207d5b77c05c9111ff51ab91082701221220c477"
+PV = "2.3.2"
+S = "${WORKDIR}/git"
+
+inherit cmake pkgconfig ptest
+
+EXTRA_OECMAKE = "-DENABLE_SAMPLES=OFF"
+
+do_install_ptest() {
+        cp -rf ${B}/t_ParserTest ${D}${PTEST_PATH}
+}
+
+RDEPENDS:${PN}-ptest += " \
+        cmake \
+"
+