package/libnpupnp: new package
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 23 Jun 2020 20:31:24 +0000 (22:31 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 23 Jun 2020 21:19:03 +0000 (23:19 +0200)
npupnp (new pupnp or not pupnp ?) is an UPnP library derived from the
venerable pupnp (https://github.com/pupnp/pupnp), based on its 1.6.x
branch (around 1.6.25).

https://www.lesbonscomptes.com/upmpdcli/libnpupnp.html

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
DEVELOPERS
package/Config.in
package/libnpupnp/Config.in [new file with mode: 0644]
package/libnpupnp/libnpupnp.hash [new file with mode: 0644]
package/libnpupnp/libnpupnp.mk [new file with mode: 0644]

index fb6d4cec6425a753f0da4f89ccba95069da0f3c5..4b6a346a05d36e186e1e9bcc6d826b8407b88af7 100644 (file)
@@ -856,6 +856,7 @@ F:  package/libmatroska/
 F:     package/libmpdclient/
 F:     package/libnetfilter_conntrack/
 F:     package/libnetfilter_queue/
+F:     package/libnpupnp/
 F:     package/liboping/
 F:     package/libpfm4/
 F:     package/libraw/
index e2bb004015813f61c42325ea9e344756be4722eb..6a34a895af5e7b5881ae7a10a66afb016b91f565 100644 (file)
@@ -1712,6 +1712,7 @@ menu "Networking"
        source "package/libnice/Config.in"
        source "package/libnids/Config.in"
        source "package/libnl/Config.in"
+       source "package/libnpupnp/Config.in"
        source "package/liboauth/Config.in"
        source "package/liboping/Config.in"
        source "package/libosip2/Config.in"
diff --git a/package/libnpupnp/Config.in b/package/libnpupnp/Config.in
new file mode 100644 (file)
index 0000000..cea5bd5
--- /dev/null
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_LIBNPUPNP
+       bool "libnpupnp"
+       depends on BR2_INSTALL_LIBSTDCPP
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
+       select BR2_PACKAGE_EXPAT
+       select BR2_PACKAGE_LIBCURL
+       select BR2_PACKAGE_LIBMICROHTTPD
+       help
+         npupnp (new pupnp or not pupnp ?) is an UPnP library derived
+         from the venerable pupnp (https://github.com/pupnp/pupnp),
+         based on its 1.6.x branch (around 1.6.25).
+
+         https://www.lesbonscomptes.com/upmpdcli/libnpupnp.html
+
+comment "libnpupnp needs a toolchain w/ C++, threads, gcc >= 4.9"
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
diff --git a/package/libnpupnp/libnpupnp.hash b/package/libnpupnp/libnpupnp.hash
new file mode 100644 (file)
index 0000000..41cc419
--- /dev/null
@@ -0,0 +1,5 @@
+# Hashes from: http://www.lesbonscomptes.com/upmpdcli/downloads/libnpupnp-4.0.7.tar.gz.sha256
+sha256  30f15caa67dc83f76b0976438165aa4704a50c7e3e5444c50bb8cbad874877ca  libnpupnp-4.0.7.tar.gz
+
+# Hash for license file:
+sha256  c8b99423cad48bb44e2cf52a496361404290865eac259a82da6d1e4331ececb3  COPYING
diff --git a/package/libnpupnp/libnpupnp.mk b/package/libnpupnp/libnpupnp.mk
new file mode 100644 (file)
index 0000000..abd80ab
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# libnpupnp
+#
+################################################################################
+
+LIBNPUPNP_VERSION = 4.0.7
+LIBNPUPNP_SITE = http://www.lesbonscomptes.com/upmpdcli/downloads
+LIBNPUPNP_LICENSE = BSD-3-Clause
+LIBNPUPNP_LICENSE_FILES = COPYING
+LIBNPUPNP_INSTALL_STAGING = YES
+LIBNPUPNP_DEPENDENCIES = expat libcurl libmicrohttpd
+
+$(eval $(autotools-package))