mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
e5817f44a2
d8bc47fde4 depends: switch to secure download of all dependencies (Ulrich Kempken) Pull request description: Even if we potentially check the integrity of the downloaded file via hash comparison, we should make use of SSL since it is available. ACKs for commit d8bc47: jonasschnelli: utACK d8bc47fde46ca0711fa54a0d70ff5d066c708e50 practicalswift: utACK d8bc47fde46ca0711fa54a0d70ff5d066c708e50 dongcarl: tACK d8bc47fde46ca0711fa54a0d70ff5d066c708e50 Tree-SHA512: e47702f6d243ed7f498ca84c193244382f16f08df6a297caa224b4468f501f3da6fe542fcf3a0dd9c24ab1b0b38bbc51478068e6006a92854ded23abf90de3c8
30 lines
1.2 KiB
Makefile
30 lines
1.2 KiB
Makefile
package=miniupnpc
|
|
$(package)_version=2.0.20180203
|
|
$(package)_download_path=https://miniupnp.tuxfamily.org/files/
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=90dda8c7563ca6cd4a83e23b3c66dbbea89603a1675bfdb852897c2c9cc220b7
|
|
$(package)_patches=dont_use_wingen.patch
|
|
|
|
define $(package)_set_vars
|
|
$(package)_build_opts=CC="$($(package)_cc)"
|
|
$(package)_build_opts_darwin=LIBTOOL="$($(package)_libtool)"
|
|
$(package)_build_opts_mingw32=-f Makefile.mingw
|
|
$(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)"
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
mkdir dll && \
|
|
sed -e 's|MINIUPNPC_VERSION_STRING \"version\"|MINIUPNPC_VERSION_STRING \"$($(package)_version)\"|' -e 's|OS/version|$(host)|' miniupnpcstrings.h.in > miniupnpcstrings.h && \
|
|
patch -p1 < $($(package)_patch_dir)/dont_use_wingen.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
|