package/dante: add optional libminiupnpc dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 9 Dec 2019 22:27:45 +0000 (23:27 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 12 Dec 2019 07:45:18 +0000 (08:45 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/dante/dante.mk

index 0668042bd8e9a4c047aa2571d8aac6ee0fd0ef20..35b785dc70bdcd27de2098887c6c2be51d50e42d 100644 (file)
@@ -14,6 +14,13 @@ DANTE_AUTORECONF = YES
 
 DANTE_CONF_OPTS += --disable-client --disable-preload
 
+ifeq ($(BR2_PACKAGE_LIBMINIUPNPC),y)
+DANTE_DEPENDENCIES += libminiupnpc
+DANTE_CONF_OPTS += --with-upnp
+else
+DANTE_CONF_OPTS += --without-upnp
+endif
+
 ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
 DANTE_DEPENDENCIES += linux-pam
 DANTE_CONF_OPTS += --with-pam