diff --git a/meta-digi-dey/recipes-crank/crank-sbengine/crank-sbengine/sb-launcher b/meta-digi-dey/recipes-crank/crank-sbengine/crank-sbengine/sb-launcher new file mode 100644 index 000000000..e4ed475e9 --- /dev/null +++ b/meta-digi-dey/recipes-crank/crank-sbengine/crank-sbengine/sb-launcher @@ -0,0 +1,5 @@ +#!/bin/sh + +ENGINE="/usr/share/crank/sbengine" + +exec env LD_LIBRARY_PATH="${ENGINE}/lib" SB_PLUGINS="${ENGINE}/plugins" ${ENGINE}/bin/sbengine "$@" diff --git a/meta-digi-dey/recipes-crank/crank-sbengine/crank-sbengine_7.1.bb b/meta-digi-dey/recipes-crank/crank-sbengine/crank-sbengine_7.1.bb new file mode 100644 index 000000000..12c0f563f --- /dev/null +++ b/meta-digi-dey/recipes-crank/crank-sbengine/crank-sbengine_7.1.bb @@ -0,0 +1,91 @@ +# Copyright (C) 2022, Digi International Inc. + +SUMMARY = "Crank Storyboard Engine" +HOMEPAGE = "https://www.cranksoftware.com/" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://EULA.pdf;md5=fcb6aca5219f44fea1c073405a378250" + +SBENGINE_NAME:ccimx6ul = "linux-imx6yocto-armle-swrender-obj" +SBENGINE_NAME:ccimx6 = "linux-imx6yocto-armle-opengles_2.0-obj" +SBENGINE_NAME:ccimx8m = "linux-imx8yocto-armle-opengles_2.0-wayland-obj" +SBENGINE_NAME:ccimx8x = "linux-imx8yocto-armle-opengles_2.0-wayland-obj" +SBENGINE_NAME:ccmp15 = "linux-stmA5-armle-opengles_2.0-wayland-obj" + +SRC_URI = " \ + http:///not/exist/crank-sbengine-${PV}.tar.gz \ + file://sb-launcher \ +" +SRC_URI[md5sum] = "0e2206a02b12814006074634fdd785a8" +SRC_URI[sha256sum] = "d124692c16072237c31fcbf5615d94681ae62f1774bfff2c4af6d6952b4c7bee" + +CRANK_ENGINE_TARBALL_PATH ?= "" + +# The tarball is only available for downloading after registration, so provide +# a PREMIRROR to a local directory that can be configured in the project's +# local.conf file using CRANK_ENGINE_TARBALL_PATH variable. +python() { + crank_engine_tarball_path = d.getVar('CRANK_ENGINE_TARBALL_PATH', True) + if crank_engine_tarball_path: + premirrors = d.getVar('PREMIRRORS', True) + d.setVar('PREMIRRORS', "http:///not/exist/crank-sbengine-.* %s \\n %s" % (crank_engine_tarball_path, premirrors)) +} + +# Disable tasks not needed for the binary package +do_configure[noexec] = "1" +do_compile[noexec] = "1" + +do_install () { + # Install launcher script + install -d -m 0755 ${D}${bindir} + install -m 0755 ${WORKDIR}/sb-launcher ${D}${bindir}/sb-launcher + + # Copy the engine + install -d -m 0755 ${D}${datadir}/crank/sbengine + cp -drf ${S}/${SBENGINE_NAME}/* ${D}${datadir}/crank/sbengine +} + +FILES:${PN} = " \ + ${bindir}/* \ + ${datadir}/crank/sbengine/* \ +" +FILES:${PN}-staticdev += " ${datadir}/crank/sbengine/lib/libgreio.a" + +# +# Disable failing QA checks: +# +# Libraries inside /usr/share (datadir) +# ELF binaries has relocations in .text +# +INSANE_SKIP:${PN} += "libdir textrel" +INSANE_SKIP:${PN}-dbg += "libdir" + +RDEPENDS:${PN} = " \ + alsa-lib \ + glib-2.0 \ + gstreamer1.0 \ + libgstapp-1.0 \ + libxml2 \ + zlib \ +" +RDEPENDS:${PN}:append:ccimx6ul = " \ + mtdev \ + tslib \ +" +RDEPENDS:${PN}:append:ccimx8m = " \ + libegl-imx \ + libgles2-imx \ + wayland \ +" +RDEPENDS:${PN}:append:ccimx8x = " \ + libegl-imx \ + libgles2-imx \ + wayland \ +" +RDEPENDS:${PN}:append:ccimx6 = " \ + libegl-imx \ + libgles2-imx \ + mtdev \ + tslib \ +" + +PACKAGE_ARCH = "${MACHINE_ARCH}"