diff options
Diffstat (limited to 'meta-multimedia/recipes-multimedia/libcamera/libcamera_0.0.1.bb')
| -rw-r--r-- | meta-multimedia/recipes-multimedia/libcamera/libcamera_0.0.1.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.0.1.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.0.1.bb new file mode 100644 index 0000000000..2b77d99371 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.0.1.bb | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | SUMMARY = "Linux libcamera framework" | ||
| 2 | SECTION = "libs" | ||
| 3 | |||
| 4 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" | ||
| 5 | |||
| 6 | LIC_FILES_CHKSUM = "\ | ||
| 7 | file://LICENSES/GPL-2.0-or-later.txt;md5=fed54355545ffd980b814dab4a3b312c \ | ||
| 8 | file://LICENSES/LGPL-2.1-or-later.txt;md5=2a4f4fd2128ea2f65047ee63fbca9f68 \ | ||
| 9 | " | ||
| 10 | |||
| 11 | SRC_URI = " \ | ||
| 12 | git://git.libcamera.org/libcamera/libcamera.git;protocol=https;branch=master \ | ||
| 13 | " | ||
| 14 | |||
| 15 | SRCREV = "a83aed77df1258e469c0eb42d9cb4f1938db53f2" | ||
| 16 | |||
| 17 | PE = "1" | ||
| 18 | |||
| 19 | S = "${WORKDIR}/git" | ||
| 20 | |||
| 21 | DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls chrpath-native libevent libyaml" | ||
| 22 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}" | ||
| 23 | |||
| 24 | PACKAGES =+ "${PN}-gst" | ||
| 25 | |||
| 26 | PACKAGECONFIG ??= "" | ||
| 27 | PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base" | ||
| 28 | |||
| 29 | EXTRA_OEMESON = " \ | ||
| 30 | -Dpipelines=uvcvideo,simple,vimc \ | ||
| 31 | -Dipas=vimc \ | ||
| 32 | -Dv4l2=true \ | ||
| 33 | -Dcam=enabled \ | ||
| 34 | -Dlc-compliance=disabled \ | ||
| 35 | -Dtest=false \ | ||
| 36 | -Ddocumentation=disabled \ | ||
| 37 | " | ||
| 38 | |||
| 39 | RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland qt', 'qtwayland', '', d)}" | ||
| 40 | |||
| 41 | inherit meson pkgconfig python3native | ||
| 42 | |||
| 43 | do_configure:prepend() { | ||
| 44 | sed -i -e 's|py_compile=True,||' ${S}/utils/ipc/mojo/public/tools/mojom/mojom/generate/template_expander.py | ||
| 45 | } | ||
| 46 | |||
| 47 | do_install:append() { | ||
| 48 | chrpath -d ${D}${libdir}/libcamera.so | ||
| 49 | chrpath -d ${D}${libdir}/v4l2-compat.so | ||
| 50 | } | ||
| 51 | |||
| 52 | addtask do_recalculate_ipa_signatures_package after do_package before do_packagedata | ||
| 53 | do_recalculate_ipa_signatures_package() { | ||
| 54 | local modules | ||
| 55 | for module in $(find ${PKGD}/usr/lib/libcamera -name "*.so.sign"); do | ||
| 56 | module="${module%.sign}" | ||
| 57 | if [ -f "${module}" ] ; then | ||
| 58 | modules="${modules} ${module}" | ||
| 59 | fi | ||
| 60 | done | ||
| 61 | |||
| 62 | ${S}/src/ipa/ipa-sign-install.sh ${B}/src/ipa-priv-key.pem "${modules}" | ||
| 63 | } | ||
| 64 | |||
| 65 | FILES:${PN} += " ${libdir}/v4l2-compat.so" | ||
| 66 | FILES:${PN}-gst = "${libdir}/gstreamer-1.0" | ||
