package/libminiupnpc: drop dependencies

libminiupnpc can be statically built with or without binfmt flat since
version 1.7 and
c183a72c46

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Fabrice Fontaine 2022-03-17 19:56:15 +01:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 607c5986a9
commit ffcb5ded44
2 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,5 @@
config BR2_PACKAGE_LIBMINIUPNPC
bool "libminiupnpc"
depends on !BR2_BINFMT_FLAT
depends on !BR2_STATIC_LIBS
help
The UPnP protocol is supported by most home adsl/cable routers
and Microsoft Windows 2K/XP. The aim of the MiniUPnP project
@ -14,7 +12,3 @@ config BR2_PACKAGE_LIBMINIUPNPC
ANSI C.
http://miniupnp.free.fr
comment "libminiupnpc needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
depends on !BR2_BINFMT_FLAT

View File

@ -18,4 +18,12 @@ LIBMINIUPNPC_CPE_ID_VERSION = $(LIBMINIUPNPC_VERSION_MAJOR)
LIBMINIUPNPC_CPE_ID_UPDATE = $(LIBMINIUPNPC_VERSION_MINOR)
LIBMINIUPNPC_CONF_OPTS = -DUPNPC_BUILD_SAMPLE=OFF -DUPNPC_BUILD_TESTS=OFF
ifeq ($(BR2_STATIC_LIBS),y)
LIBMINIUPNPC_CONF_OPTS += -DUPNPC_BUILD_SHARED=OFF -DUPNPC_BUILD_STATIC=ON
else ifeq ($(BR2_SHARED_LIBS),y)
LIBMINIUPNPC_CONF_OPTS += -DUPNPC_BUILD_SHARED=ON -DUPNPC_BUILD_STATIC=OFF
else
LIBMINIUPNPC_CONF_OPTS += -DUPNPC_BUILD_SHARED=ON -DUPNPC_BUILD_STATIC=ON
endif
$(eval $(cmake-package))