libcamera-apps_git.bb 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/libcamera-apps"
  5. SECTION = "console/utils"
  6. LICENSE = "BSD-2-Clause"
  7. LIC_FILES_CHKSUM = "file://license.txt;md5=a0013d1b383d72ba4bdc5b750e7d1d77"
  8. SRC_URI = "\
  9. git://github.com/raspberrypi/libcamera-apps.git;protocol=https;branch=main \
  10. file://0001-utils-version.py-use-usr-bin-env-in-shebang.patch \
  11. file://0002-Revert-Support-compressed-pixel-formats-when-saving-.patch \
  12. "
  13. PV = "1.4.2+git${SRCPV}"
  14. SRCREV = "9ae39f85ae6bee9761c36b9b5b80d675bc1fa369"
  15. DEPENDS = "libcamera libexif jpeg tiff libpng boost"
  16. PACKAGECONFIG ??= "drm"
  17. PACKAGECONFIG[libav] = "-Denable_libav=true, -Denable_libav=false, libav"
  18. PACKAGECONFIG[drm] = "-Denable_drm=true, -Denable_drm=false, libdrm"
  19. PACKAGECONFIG[egl] = "-Denable_egl=true, -Denable_egl=false, virtual/egl"
  20. PACKAGECONFIG[qt] = "-Denable_qt=true, -Denable_qt=false, qtbase"
  21. PACKAGECONFIG[opencv] = "-Denable_opencv=true, -Denable_opencv=false, opencv"
  22. PACKAGECONFIG[tflite] = "-Denable_tflite=true, -Denable_tflite=false, tensorflow-lite"
  23. inherit meson pkgconfig
  24. NEON_FLAGS = ""
  25. NEON_FLAGS:aarch64 = "-Dneon_flags=arm64"
  26. NEON_FLAGS:arm:raspberrypi3 = "-Dneon_flags=armv8-neon"
  27. NEON_FLAGS:arm:raspberrypi4 = "-Dneon_flags=armv8-neon"
  28. EXTRA_OEMESON += "${NEON_FLAGS}"
  29. # QA Issue: /usr/bin/camera-bug-report contained in package libcamera-apps requires /usr/bin/python3
  30. do_install:append() {
  31. rm -v ${D}/${bindir}/camera-bug-report
  32. }
  33. # not picked automatically, because it's missing common 'lib' prefix
  34. FILES:${PN}-dev += "${libdir}/rpicam_app.so"