similarity index 57%
rename from meta-multimedia/recipes-connectivity/libupnp/libupnp_1.14.31.bb
rename to meta-multimedia/recipes-connectivity/libupnp/libupnp_22.2.2.bb
@@ -8,15 +8,21 @@ HOMEPAGE = "http://pupnp.sourceforge.net/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=394a0f17b97f33426275571e15920434"
-SRCREV = "79ff958ed1012e60faba84981481f76cea43c7f2"
-SRC_URI = "git://github.com/pupnp/pupnp.git;protocol=https;branch=branch-1.14.x;tag=release-${PV} \
+SRCREV = "fac0494691434c35243131f66a0b27ea0c29f700"
+SRC_URI = "git://github.com/pupnp/pupnp.git;protocol=https;branch=main;tag=release-${PV} \
"
+inherit cmake pkgconfig
-inherit autotools pkgconfig
+EXTRA_OECMAKE = "\
+ -DCMAKE_BUILD_TYPE=Release \
+ -DUPNP_BUILD_STATIC=OFF \
+ -DUPNP_BUILD_SAMPLES=OFF \
+ -DUPNP_ENABLE_TESTING=OFF \
+ -DUPNP_ENABLE_TESTING_INTEGRATION=OFF \
+ -DUPNP_MINISERVER_REUSEADDR=ON \
+ -DDOWNLOAD_AND_BUILD_DEPS=OFF \
+"
-EXTRA_OECONF += "--enable-reuseaddr"
-
-# Enable LFS support ( for samples )
-CFLAGS += "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE"
-CXXFLAGS += "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE"
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[openssl] = "-DUPNP_ENABLE_OPEN_SSL=ON,-DUPNP_ENABLE_OPEN_SSL=OFF,openssl"
Move from the 1.14.x maintenance branch to the current 22.x series. 22.x keeps the same COPYING, but bumps the soname to libupnp.so.22/libixml.so.22, and upstream dropped autotools in favour of CMake, so switch to the cmake class. Upstream defaults CMAKE_BUILD_TYPE to Debug, which also exports a public -DDEBUG to consumers, so pass Release explicitly. Keep SO_REUSEADDR on the miniserver socket (replaces --enable-reuseaddr), and disable samples, static libraries, tests and the FetchContent dependency download. Add an openssl PACKAGECONFIG for the optional SSL support. The large-file CFLAGS are dropped: upstream now detects and sets _FILE_OFFSET_BITS itself and exports it to users via its CMake config. Reverse dependencies gerbera and mpd (upnp enabled) build and link against libupnp.so.22. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- .../{libupnp_1.14.31.bb => libupnp_22.2.2.bb} | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) rename meta-multimedia/recipes-connectivity/libupnp/{libupnp_1.14.31.bb => libupnp_22.2.2.bb} (57%)