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 \ |
| 12 | " |
| 13 | SRCREV = "22a52590c33a813743b4e6337478c208201c77b1" |
| 14 | |
| 15 | S = "${WORKDIR}/git" |
| 16 | |
| 17 | COMPATIBLE_MACHINE = "^rpi$" |
| 18 | |
| 19 | DEPENDS = "libcamera libexif jpeg tiff libpng boost" |
| 20 | |
| 21 | inherit cmake pkgconfig |
| 22 | |
| 23 | EXTRA_OECMAKE = "\ |
| 24 | -DCMAKE_BUILD_TYPE=Release \ |
| 25 | -DBoost_INCLUDE_DIR=${STAGING_INCDIR} \ |
| 26 | -DCMAKE_LIBRARY_PATH=${STAGING_LIBDIR} \ |
| 27 | " |
| 28 | |
| 29 | EXTRA_OECMAKE:append:raspberrypi3 = " -DENABLE_COMPILE_FLAGS_FOR_TARGET=armv8-neon" |
| 30 | EXTRA_OECMAKE:append:raspberrypi4 = " -DENABLE_COMPILE_FLAGS_FOR_TARGET=armv8-neon" |
| 31 | |
| 32 | PACKAGECONFIG[x11] = "-DENABLE_X11=1,-DENABLE_X11=0" |
| 33 | PACKAGECONFIG[qt] = "-DENABLE_QT=1,-DENABLE_QT=0" |
| 34 | PACKAGECONFIG[opencv] = "-DENABLE_OPENCV=1,-DENABLE_OPENCV=0" |
| 35 | PACKAGECONFIG[tensorflow-lite] = "-DENABLE_TFLITE=1,-DENABLE_TFLITE=0" |
| 36 | |
| 37 | # Build does not version solibs so we need to change the suffix |
| 38 | SOLIBS = ".so" |
| 39 | FILES_SOLIBSDEV = "" |
| 40 | |
| 41 | do_install:append() { |
| 42 | # Requires python3-core which not all systems may have |
| 43 | rm ${D}/${bindir}/camera-bug-report |
| 44 | } |