blob: dc071457644c77e4a0e5e00c0ce08578bfdfc37b [file] [log] [blame]
Patrick Williams2a254922023-08-11 09:48:11 -05001SUMMARY = "A suite of libcamera-based apps"
2DESCRIPTION = "This is a small suite of libcamera-based apps that aim to \
3copy the functionality of the existing \"raspicam\" apps."
4HOMEPAGE = "https://github.com/raspberrypi/libcamera-apps"
5SECTION = "console/utils"
6
7LICENSE = "BSD-2-Clause"
8LIC_FILES_CHKSUM = "file://license.txt;md5=a0013d1b383d72ba4bdc5b750e7d1d77"
9
10SRC_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 Williams73bd93f2024-02-20 08:07:48 -060013 file://0002-Revert-Support-compressed-pixel-formats-when-saving-.patch \
Patrick Williams2a254922023-08-11 09:48:11 -050014"
Patrick Williams73bd93f2024-02-20 08:07:48 -060015PV = "1.4.2+git${SRCPV}"
16SRCREV = "9ae39f85ae6bee9761c36b9b5b80d675bc1fa369"
Patrick Williams2a254922023-08-11 09:48:11 -050017
18S = "${WORKDIR}/git"
19
20DEPENDS = "libcamera libexif jpeg tiff libpng boost"
21
22PACKAGECONFIG ??= "drm"
23PACKAGECONFIG[libav] = "-Denable_libav=true, -Denable_libav=false, libav"
24PACKAGECONFIG[drm] = "-Denable_drm=true, -Denable_drm=false, libdrm"
25PACKAGECONFIG[egl] = "-Denable_egl=true, -Denable_egl=false, virtual/egl"
26PACKAGECONFIG[qt] = "-Denable_qt=true, -Denable_qt=false, qtbase"
27PACKAGECONFIG[opencv] = "-Denable_opencv=true, -Denable_opencv=false, opencv"
28PACKAGECONFIG[tflite] = "-Denable_tflite=true, -Denable_tflite=false, tensorflow-lite"
29
30inherit meson pkgconfig
31
32NEON_FLAGS = ""
33NEON_FLAGS:aarch64 = "-Dneon_flags=arm64"
34NEON_FLAGS:arm:raspberrypi3 = "-Dneon_flags=armv8-neon"
35NEON_FLAGS:arm:raspberrypi4 = "-Dneon_flags=armv8-neon"
36EXTRA_OEMESON += "${NEON_FLAGS}"
37
38# QA Issue: /usr/bin/camera-bug-report contained in package libcamera-apps requires /usr/bin/python3
39do_install:append() {
40 rm -v ${D}/${bindir}/camera-bug-report
41}
Patrick Williams73bd93f2024-02-20 08:07:48 -060042
43# not picked automatically, because it's missing common 'lib' prefix
44FILES:${PN}-dev += "${libdir}/rpicam_app.so"