mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
57945ce337
a0314c151679a348d842b68c5ecb7a556700811c depends: cleanup after qrencode build (fanquake) 745bf0fa7e9afc3989e9c60d7ef09e96ae172277 depends: cleanup after miniupnpc build (fanquake) 06d4aab77af4e75f0e8fd96a93e108f92210d878 depends: Cleanup postprocess commands after switching to CMake (Hennadii Stepanov) Pull request description: I overlooked this while reviewing https://github.com/bitcoin/bitcoin/pull/29723, https://github.com/bitcoin/bitcoin/pull/29835, and https://github.com/bitcoin/bitcoin/pull/29880. ACKs for top commit: fanquake: ACK a0314c151679a348d842b68c5ecb7a556700811c Tree-SHA512: debeffa7027e6213cc25c0652660ff0f36f51e63f688041d1d6cd6323e2c6cb02936fa0ecea86455b8c9874d6ea665684085189cfa523ca084792c57b0fb7c4e
36 lines
1.4 KiB
Makefile
36 lines
1.4 KiB
Makefile
package=miniupnpc
|
|
$(package)_version=2.2.2
|
|
$(package)_download_path=https://miniupnp.tuxfamily.org/files/
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=888fb0976ba61518276fe1eda988589c700a3f2a69d71089260d75562afd3687
|
|
$(package)_patches=dont_leak_info.patch respect_mingw_cflags.patch
|
|
|
|
# Next time this package is updated, ensure that _WIN32_WINNT is still properly set.
|
|
# See discussion in https://github.com/bitcoin/bitcoin/pull/25964.
|
|
define $(package)_set_vars
|
|
$(package)_build_opts=CC="$($(package)_cc)"
|
|
$(package)_build_opts_darwin=LIBTOOL="$($(package)_libtool)"
|
|
$(package)_build_opts_mingw32=-f Makefile.mingw CFLAGS="$($(package)_cflags) -D_WIN32_WINNT=0x0601"
|
|
$(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)"
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
patch -p1 < $($(package)_patch_dir)/dont_leak_info.patch && \
|
|
patch -p1 < $($(package)_patch_dir)/respect_mingw_cflags.patch
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE) libminiupnpc.a $($(package)_build_opts)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
mkdir -p $($(package)_staging_prefix_dir)/include/miniupnpc $($(package)_staging_prefix_dir)/lib &&\
|
|
install *.h $($(package)_staging_prefix_dir)/include/miniupnpc &&\
|
|
install libminiupnpc.a $($(package)_staging_prefix_dir)/lib
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm -rf bin && \
|
|
rm -rf share
|
|
endef
|