Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 1 | SUMMARY = "A suite of libcamera-based apps for the Raspberry Pi" |
| 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 \ |
Andrew Geissler | dc9d614 | 2023-05-19 09:38:37 -0500 | [diff] [blame] | 12 | file://0001-utils-version.py-use-usr-bin-env-in-shebang.patch \ |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 13 | " |
Andrew Geissler | dc9d614 | 2023-05-19 09:38:37 -0500 | [diff] [blame] | 14 | PV = "1.1.2+git${SRCPV}" |
| 15 | SRCREV = "12098520a3dec36ba796655baac7efece457f8d8" |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 16 | |
| 17 | S = "${WORKDIR}/git" |
| 18 | |
| 19 | COMPATIBLE_MACHINE = "^rpi$" |
| 20 | |
| 21 | DEPENDS = "libcamera libexif jpeg tiff libpng boost" |
| 22 | |
| 23 | inherit cmake pkgconfig |
| 24 | |
| 25 | EXTRA_OECMAKE = "\ |
| 26 | -DCMAKE_BUILD_TYPE=Release \ |
| 27 | -DBoost_INCLUDE_DIR=${STAGING_INCDIR} \ |
| 28 | -DCMAKE_LIBRARY_PATH=${STAGING_LIBDIR} \ |
| 29 | " |
| 30 | |
Andrew Geissler | dc9d614 | 2023-05-19 09:38:37 -0500 | [diff] [blame] | 31 | LIBCAMERA_ARCH = "${TARGET_ARCH}" |
| 32 | LIBCAMERA_ARCH:aarch64 = "arm64" |
| 33 | LIBCAMERA_ARCH:arm = "armv8-neon" |
| 34 | EXTRA_OECMAKE += "-DENABLE_COMPILE_FLAGS_FOR_TARGET=${LIBCAMERA_ARCH}" |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 35 | |
| 36 | PACKAGECONFIG[x11] = "-DENABLE_X11=1,-DENABLE_X11=0" |
| 37 | PACKAGECONFIG[qt] = "-DENABLE_QT=1,-DENABLE_QT=0" |
| 38 | PACKAGECONFIG[opencv] = "-DENABLE_OPENCV=1,-DENABLE_OPENCV=0" |
| 39 | PACKAGECONFIG[tensorflow-lite] = "-DENABLE_TFLITE=1,-DENABLE_TFLITE=0" |
| 40 | |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 41 | do_install:append() { |
| 42 | # Requires python3-core which not all systems may have |
Andrew Geissler | dc9d614 | 2023-05-19 09:38:37 -0500 | [diff] [blame] | 43 | rm -v ${D}/${bindir}/camera-bug-report |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 44 | } |