diff --git a/recipes-multimedia/libcamera-apps/rpi-libcamera-apps/0001-utils-version.py-use-usr-bin-env-in-shebang.patch b/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera-apps/libcamera-apps/0001-utils-version.py-use-usr-bin-env-in-shebang.patch similarity index 100% rename from recipes-multimedia/libcamera-apps/rpi-libcamera-apps/0001-utils-version.py-use-usr-bin-env-in-shebang.patch rename to dynamic-layers/multimedia-layer/recipes-multimedia/libcamera-apps/libcamera-apps/0001-utils-version.py-use-usr-bin-env-in-shebang.patch diff --git a/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera-apps/libcamera-apps_git.bb b/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera-apps/libcamera-apps_git.bb new file mode 100644 index 000000000..9880c0705 --- /dev/null +++ b/dynamic-layers/multimedia-layer/recipes-multimedia/libcamera-apps/libcamera-apps_git.bb @@ -0,0 +1,40 @@ +SUMMARY = "A suite of libcamera-based apps" +DESCRIPTION = "This is a small suite of libcamera-based apps that aim to \ +copy the functionality of the existing \"raspicam\" apps." +HOMEPAGE = "https://github.com/raspberrypi/libcamera-apps" +SECTION = "console/utils" + +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://license.txt;md5=a0013d1b383d72ba4bdc5b750e7d1d77" + +SRC_URI = "\ + git://github.com/raspberrypi/libcamera-apps.git;protocol=https;branch=main \ + file://0001-utils-version.py-use-usr-bin-env-in-shebang.patch \ +" +PV = "1.2.1+git${SRCPV}" +SRCREV = "1c1d1c1a2a86d70cf873edc8bb72d174f037973a" + +S = "${WORKDIR}/git" + +DEPENDS = "libcamera libexif jpeg tiff libpng boost" + +PACKAGECONFIG ??= "drm" +PACKAGECONFIG[libav] = "-Denable_libav=true, -Denable_libav=false, libav" +PACKAGECONFIG[drm] = "-Denable_drm=true, -Denable_drm=false, libdrm" +PACKAGECONFIG[egl] = "-Denable_egl=true, -Denable_egl=false, virtual/egl" +PACKAGECONFIG[qt] = "-Denable_qt=true, -Denable_qt=false, qtbase" +PACKAGECONFIG[opencv] = "-Denable_opencv=true, -Denable_opencv=false, opencv" +PACKAGECONFIG[tflite] = "-Denable_tflite=true, -Denable_tflite=false, tensorflow-lite" + +inherit meson pkgconfig + +NEON_FLAGS = "" +NEON_FLAGS:aarch64 = "-Dneon_flags=arm64" +NEON_FLAGS:arm:raspberrypi3 = "-Dneon_flags=armv8-neon" +NEON_FLAGS:arm:raspberrypi4 = "-Dneon_flags=armv8-neon" +EXTRA_OEMESON += "${NEON_FLAGS}" + +# QA Issue: /usr/bin/camera-bug-report contained in package libcamera-apps requires /usr/bin/python3 +do_install:append() { + rm -v ${D}/${bindir}/camera-bug-report +} diff --git a/recipes-multimedia/libcamera-apps/rpi-libcamera-apps_git.bb b/recipes-multimedia/libcamera-apps/rpi-libcamera-apps_git.bb deleted file mode 100644 index 062ded9a1..000000000 --- a/recipes-multimedia/libcamera-apps/rpi-libcamera-apps_git.bb +++ /dev/null @@ -1,44 +0,0 @@ -SUMMARY = "A suite of libcamera-based apps for the Raspberry Pi" -DESCRIPTION = "This is a small suite of libcamera-based apps that aim to \ -copy the functionality of the existing \"raspicam\" apps." -HOMEPAGE = "https://github.com/raspberrypi/libcamera-apps" -SECTION = "console/utils" - -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://license.txt;md5=a0013d1b383d72ba4bdc5b750e7d1d77" - -SRC_URI = "\ - git://github.com/raspberrypi/libcamera-apps.git;protocol=https;branch=main \ - file://0001-utils-version.py-use-usr-bin-env-in-shebang.patch \ -" -PV = "1.1.2+git${SRCPV}" -SRCREV = "12098520a3dec36ba796655baac7efece457f8d8" - -S = "${WORKDIR}/git" - -COMPATIBLE_MACHINE = "^rpi$" - -DEPENDS = "libcamera libexif jpeg tiff libpng boost" - -inherit cmake pkgconfig - -EXTRA_OECMAKE = "\ - -DCMAKE_BUILD_TYPE=Release \ - -DBoost_INCLUDE_DIR=${STAGING_INCDIR} \ - -DCMAKE_LIBRARY_PATH=${STAGING_LIBDIR} \ -" - -LIBCAMERA_ARCH = "${TARGET_ARCH}" -LIBCAMERA_ARCH:aarch64 = "arm64" -LIBCAMERA_ARCH:arm = "armv8-neon" -EXTRA_OECMAKE += "-DENABLE_COMPILE_FLAGS_FOR_TARGET=${LIBCAMERA_ARCH}" - -PACKAGECONFIG[x11] = "-DENABLE_X11=1,-DENABLE_X11=0" -PACKAGECONFIG[qt] = "-DENABLE_QT=1,-DENABLE_QT=0" -PACKAGECONFIG[opencv] = "-DENABLE_OPENCV=1,-DENABLE_OPENCV=0" -PACKAGECONFIG[tensorflow-lite] = "-DENABLE_TFLITE=1,-DENABLE_TFLITE=0" - -do_install:append() { - # Requires python3-core which not all systems may have - rm -v ${D}/${bindir}/camera-bug-report -}