new file mode 100644
@@ -0,0 +1,23 @@
+SUMMARY = "V4L2rtsp streaming server"
+LICENSE = "Unlicense"
+LIC_FILES_CHKSUM = "file://Unlicense.txt;md5=d88e9e08385d2a17052dac348bde4bc1"
+
+SRC_URI = "gitsm://github.com/mpromonet/v4l2rtspserver.git;branch=master;protocol=https;tag=v${PV}"
+SRCREV = "fafc8cbd1c93bf0f7453efa8b7718c68941fd5eb"
+
+inherit pkgconfig cmake systemd
+
+DEPENDS += "live555 openssl"
+
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa systemd', d)} log4cpp"
+PACKAGECONFIG[alsa] = "-DALSA=ON,-DALSA=OFF,alsa-lib"
+PACKAGECONFIG[log4cpp] = "-DLOG4CPP=ON,-DLOG4CPP=OFF,log4cpp"
+PACKAGECONFIG[systemd] = "-DSYSTEMD=ON,-DSYSTEMD=OFF,systemd"
+
+# Keep CMake from running "git describe", Hand it the version instead.
+EXTRA_OECMAKE += "-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON"
+export V4L2RTSPSERVER_VERSION = "${PV}"
+
+SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'v4l2rtspserver.service', '', d)}"
+# The unit streams /dev/video0 to the network; let the image opt in.
+SYSTEMD_AUTO_ENABLE = "disable"
deleted file mode 100644
@@ -1,12 +0,0 @@
-SUMMARY = "V4L2rtsp streaming server"
-LICENSE = "Unlicense"
-LIC_FILES_CHKSUM = "file://UNLICENSE;md5=911690f51af322440237a253d695d19f"
-
-SRC_URI = "gitsm://github.com/mpromonet/v4l2rtspserver.git;branch=master;protocol=https"
-SRCREV = "b12cf350dc573ab0ff9d1b51a21daf3c218b614e"
-
-S = "${WORKDIR}/git"
-
-inherit pkgconfig cmake
-
-DEPENDS += "live555 log4cpp"
- live555 is now found via pkg-config (see the live555 change adding live555.pc); without it CMake would download live555 at configure time. - Disable CMake's Git lookup: it runs "git submodule update --init" and "git describe" from the build directory, which can act on an unrelated repository enclosing TMPDIR. Pass the version through V4L2RTSPSERVER_VERSION instead. - Add openssl to DEPENDS, it is linked directly. - Drop S, the default now matches. - Turn the automagic ALSA and systemd detection into PACKAGECONFIGs defaulting to DISTRO_FEATURES, and make log4cpp a PACKAGECONFIG too. log4cpp was in DEPENDS but never used, since upstream only links it with -DLOG4CPP=ON; it is now enabled by default. - Register the new systemd unit, but leave it disabled: it streams /dev/video0 to the network, so images should opt in. License-Update: License file renamed to Unlicense.txt; its only change is the unlicense.org URL switching to https. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- .../v4l2apps/v4l2rtspserver_0.3.13.bb | 23 +++++++++++++++++++ .../v4l2apps/v4l2rtspserver_0.3.8.bb | 12 ---------- 2 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.13.bb delete mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb