diff --git a/package/bitcoin/Config.in b/package/bitcoin/Config.in index 425e99ce8b..3240462f56 100644 --- a/package/bitcoin/Config.in +++ b/package/bitcoin/Config.in @@ -15,6 +15,7 @@ config BR2_PACKAGE_BITCOIN depends on BR2_TOOLCHAIN_GCC_AT_LEAST_11 depends on BR2_TOOLCHAIN_HAS_THREADS # boost depends on BR2_USE_WCHAR + select BR2_HOST_CMAKE_AT_LEAST_3_22 select BR2_PACKAGE_BOOST select BR2_PACKAGE_BOOST_SYSTEM select BR2_PACKAGE_BOOST_FILESYSTEM diff --git a/package/bitcoin/bitcoin.hash b/package/bitcoin/bitcoin.hash index c7dad34d0a..4f4061ed77 100644 --- a/package/bitcoin/bitcoin.hash +++ b/package/bitcoin/bitcoin.hash @@ -1,7 +1,7 @@ -# Hash from: https://bitcoincore.org/bin/bitcoin-core-28.0/SHA256SUMS +# Hash from: https://bitcoincore.org/bin/bitcoin-core-30.0/SHA256SUMS # After checking pgp signature from: -# https://bitcoincore.org/bin/bitcoin-core-28.0/SHA256SUMS.asc -sha256 700ae2d1e204602eb07f2779a6e6669893bc96c0dca290593f80ff8e102ff37f bitcoin-28.0.tar.gz +# https://bitcoincore.org/bin/bitcoin-core-30.0/SHA256SUMS.asc +sha256 9b472a4d51dfed9aa9d0ded2cb8c7bcb9267f8439a23a98f36eb509c1a5e6974 bitcoin-30.0.tar.gz # Hash for license file -sha256 779d9beab4eef2340bb1e86e91f8f55dea9b0985a2d03fbcbb52bd713e091e1b COPYING +sha256 7c4a87f43afaf667b4c2187af92ebdd27310a24cec113f973e058e3300a76002 COPYING diff --git a/package/bitcoin/bitcoin.mk b/package/bitcoin/bitcoin.mk index 9a5f4d6494..e23ef45050 100644 --- a/package/bitcoin/bitcoin.mk +++ b/package/bitcoin/bitcoin.mk @@ -4,48 +4,35 @@ # ################################################################################ -BITCOIN_VERSION = 28.0 +BITCOIN_VERSION = 30.0 BITCOIN_SITE = https://bitcoincore.org/bin/bitcoin-core-$(BITCOIN_VERSION) -BITCOIN_AUTORECONF = YES BITCOIN_LICENSE = MIT BITCOIN_LICENSE_FILES = COPYING BITCOIN_CPE_ID_VENDOR = bitcoin BITCOIN_CPE_ID_PRODUCT = bitcoin_core BITCOIN_DEPENDENCIES = host-pkgconf boost libevent +BITCOIN_SUPPORTS_IN_SOURCE_BUILD = NO BITCOIN_MAKE_ENV = BITCOIN_GENBUILD_NO_GIT=1 -# Berkeley Database (bdb) support is always disabled. It is only -# needed for legacy wallet format. New wallets are using SQLite. BITCOIN_CONF_OPTS = \ - --disable-bench \ - --disable-tests \ - --with-boost-libdir=$(STAGING_DIR)/usr/lib/ \ - --disable-hardening \ - --without-bdb \ - --without-gui + -DBUILD_BENCH=OFF \ + -DBUILD_TESTS=OFF \ + -DBUILD_GUI=OFF \ + -DENABLE_IPC=OFF ifeq ($(BR2_PACKAGE_BITCOIN_WALLET),y) BITCOIN_DEPENDENCIES += sqlite BITCOIN_CONF_OPTS += \ - --enable-wallet \ - --with-sqlite + -DENABLE_WALLET=ON else BITCOIN_CONF_OPTS += \ - --disable-wallet \ - --without-sqlite -endif - -ifeq ($(BR2_PACKAGE_LIBMINIUPNPC),y) -BITCOIN_DEPENDENCIES += libminiupnpc -BITCOIN_CONF_OPTS += --with-miniupnpc -else -BITCOIN_CONF_OPTS += --without-miniupnpc + -DENABLE_WALLET=OFF endif ifeq ($(BR2_PACKAGE_ZEROMQ),y) BITCOIN_DEPENDENCIES += zeromq -BITCOIN_CONF_OPTS += --with-zmq +BITCOIN_CONF_OPTS += -DWITH_ZMQ=ON else -BITCOIN_CONF_OPTS += --without-zmq +BITCOIN_CONF_OPTS += -DWITH_ZMQ=OFF endif -$(eval $(autotools-package)) +$(eval $(cmake-package))