Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 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 | |
| 7 | LICENSE = "BSD-2-Clause" |
| 8 | LIC_FILES_CHKSUM = "file://license.txt;md5=a0013d1b383d72ba4bdc5b750e7d1d77" |
| 9 | |
| 10 | SRC_URI = "\ |
| 11 | git://github.com/raspberrypi/libcamera-apps.git;protocol=https;branch=main \ |
| 12 | file://0001-utils-version.py-use-usr-bin-env-in-shebang.patch \ |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 13 | file://0002-Revert-Support-compressed-pixel-formats-when-saving-.patch \ |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 14 | " |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 15 | PV = "1.4.2+git${SRCPV}" |
| 16 | SRCREV = "9ae39f85ae6bee9761c36b9b5b80d675bc1fa369" |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | DEPENDS = "libcamera libexif jpeg tiff libpng boost" |
| 21 | |
| 22 | PACKAGECONFIG ??= "drm" |
| 23 | PACKAGECONFIG[libav] = "-Denable_libav=true, -Denable_libav=false, libav" |
| 24 | PACKAGECONFIG[drm] = "-Denable_drm=true, -Denable_drm=false, libdrm" |
| 25 | PACKAGECONFIG[egl] = "-Denable_egl=true, -Denable_egl=false, virtual/egl" |
| 26 | PACKAGECONFIG[qt] = "-Denable_qt=true, -Denable_qt=false, qtbase" |
| 27 | PACKAGECONFIG[opencv] = "-Denable_opencv=true, -Denable_opencv=false, opencv" |
| 28 | PACKAGECONFIG[tflite] = "-Denable_tflite=true, -Denable_tflite=false, 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 | do_install:append() { |
| 40 | rm -v ${D}/${bindir}/camera-bug-report |
| 41 | } |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 42 | |
| 43 | # not picked automatically, because it's missing common 'lib' prefix |
| 44 | FILES:${PN}-dev += "${libdir}/rpicam_app.so" |