package/bitcoin: add optional libminiupnpc dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 8 Dec 2019 16:27:23 +0000 (17:27 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 8 Dec 2019 21:48:59 +0000 (22:48 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/bitcoin/bitcoin.mk

index 7373bf41060197c3f764acc231389c2e8a98bf1c..c01cacb0df1cc9441c110578ce1aa6968cc51302 100644 (file)
@@ -17,4 +17,11 @@ BITCOIN_CONF_OPTS = \
        --with-boost-libdir=$(STAGING_DIR)/usr/lib/ \
        --disable-hardening
 
+ifeq ($(BR2_PACKAGE_LIBMINIUPNPC),y)
+BITCOIN_DEPENDENCIES += libminiupnpc
+BITCOIN_CONF_OPTS += --with-miniupnpc
+else
+BITCOIN_CONF_OPTS += --without-miniupnpc
+endif
+
 $(eval $(autotools-package))