mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
3de365e4f1
We should be able to drop this once we are using 2.1 or later. See upstream commit: 9663c55c61408fdcc39a82987d2243f816b22932.
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
|