|
| 1 | +SUMMARY = "A suite of libcamera-based apps" |
| 2 | +DESCRIPTION = "This is a small suite of libcamera-based apps that aim to \ |
| 3 | +copy the functionality of the existing \"raspicam\" apps." |
| 4 | +HOMEPAGE = "https://github.com/raspberrypi/rpicam-apps" |
| 5 | +SECTION = "console/utils" |
| 6 | + |
| 7 | +LICENSE = "BSD-2-Clause" |
| 8 | +LIC_FILES_CHKSUM = "file://license.txt;md5=a0013d1b383d72ba4bdc5b750e7d1d77" |
| 9 | + |
| 10 | +SRC_URI = "\ |
| 11 | + git://github.com/raspberrypi/rpicam-apps.git;protocol=https;branch=main \ |
| 12 | + file://0001-utils-version.py-use-usr-bin-env-in-shebang.patch \ |
| 13 | + file://add-missing-header.patch \ |
| 14 | +" |
| 15 | + |
| 16 | +SRCREV = "eca9928b76c106141667288f1cef935d02ba59b3" |
| 17 | + |
| 18 | +PROVIDES += "rpicam-apps" |
| 19 | + |
| 20 | +DEPENDS = "libcamera libexif jpeg tiff libpng boost" |
| 21 | + |
| 22 | +PACKAGECONFIG ??= "drm tflite" |
| 23 | +PACKAGECONFIG[libav] = "-Denable_libav=enabled, -Denable_libav=disabled, libav" |
| 24 | +PACKAGECONFIG[drm] = "-Denable_drm=enabled, -Denable_drm=disabled, libdrm" |
| 25 | +PACKAGECONFIG[egl] = "-Denable_egl=enabled, -Denable_egl=disabled, virtual/egl" |
| 26 | +PACKAGECONFIG[qt] = "-Denable_qt=enabled, -Denable_qt=disabled, qtbase" |
| 27 | +PACKAGECONFIG[opencv] = "-Denable_opencv=enabled, -Denable_opencv=disabled, opencv" |
| 28 | +PACKAGECONFIG[tflite] = "-Denable_tflite=enabled, -Denable_tflite=disabled, tensorflow-lite" |
| 29 | + |
| 30 | +inherit meson pkgconfig |
| 31 | + |
| 32 | +NEON_FLAGS = "" |
| 33 | +NEON_FLAGS:aarch64 = "-Dneon_flags=arm64" |
| 34 | +NEON_FLAGS:arm:raspberrypi3 = "-Dneon_flags=armv8-neon" |
| 35 | +NEON_FLAGS:arm:raspberrypi4 = "-Dneon_flags=armv8-neon" |
| 36 | +EXTRA_OEMESON += "${NEON_FLAGS}" |
| 37 | + |
| 38 | +# QA Issue: /usr/bin/camera-bug-report contained in package libcamera-apps requires /usr/bin/python3 |
| 39 | +# QA Issue: File /usr/lib/pkgconfig/rpicam_app.pc in package libcamera-apps-dev contains reference to TMPDIR |
| 40 | +do_install:append() { |
| 41 | + rm -v ${D}/${bindir}/camera-bug-report |
| 42 | + sed -i "s,${RECIPE_SYSROOT}${libdir},$\{libdir},g" ${D}${libdir}/pkgconfig/rpicam_app.pc |
| 43 | +} |
| 44 | + |
| 45 | +FILES:${PN} += "${libdir}/rpicam-apps-postproc \ |
| 46 | + ${libdir}/rpicam-apps-preview \ |
| 47 | + ${datadir}/rpi-camera-assets" |
0 commit comments