aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-12-08 17:27:23 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-12-08 22:48:59 +0100
commite0c48090f47e7d9baa9f3649f5dd90a3cacb1609 (patch)
tree3f2aca8bbad568fa16dd86a64192abe50ce566b4
parentff7dd7062caa4ba84e169a9defe3feb86e80b7aa (diff)
downloadbuildroot-e0c48090f47e7d9baa9f3649f5dd90a3cacb1609.tar.gz
buildroot-e0c48090f47e7d9baa9f3649f5dd90a3cacb1609.tar.bz2
package/bitcoin: add optional libminiupnpc dependency
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/bitcoin/bitcoin.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/bitcoin/bitcoin.mk b/package/bitcoin/bitcoin.mk
index 7373bf4106..c01cacb0df 100644
--- a/package/bitcoin/bitcoin.mk
+++ b/package/bitcoin/bitcoin.mk
@@ -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))