depends: miniupnpc 2.2.7
Includes a temporary patch to fix the Windows Autotools build. See https://miniupnp.tuxfamily.org/files/changelog.php?file=miniupnpc-2.2.7.tar.gz.
This commit is contained in:
5 files changed
+166
-48
No files matched your search
@@ -1,30 +1,28 @@
|
||||
package=miniupnpc
|
||||
$(package)_version=2.2.2
|
||||
$(package)_version=2.2.7
|
||||
$(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 no_libtool.patch
|
||||
$(package)_sha256_hash=b0c3a27056840fd0ec9328a5a9bac3dc5e0ec6d2e8733349cf577b0aa1e70ac1
|
||||
$(package)_patches=dont_leak_info.patch no_libtool.patch fix_windows_build.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_mingw32=-f Makefile.mingw CFLAGS="$($(package)_cflags) -D_WIN32_WINNT=0x0601"
|
||||
$(package)_build_opts_mingw32=-f Makefile.mingw CFLAGS="$($(package)_cflags)"
|
||||
$(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 && \
|
||||
patch -p1 < $($(package)_patch_dir)/no_libtool.patch
|
||||
patch -p1 < $($(package)_patch_dir)/no_libtool.patch && \
|
||||
patch -p1 < $($(package)_patch_dir)/fix_windows_build.patch
|
||||
endef
|
||||
|
||||
define $(package)_build_cmds
|
||||
$(MAKE) libminiupnpc.a $($(package)_build_opts)
|
||||
$(MAKE) build/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
|
||||
install include/*.h $($(package)_staging_prefix_dir)/include/miniupnpc &&\
|
||||
install build/libminiupnpc.a $($(package)_staging_prefix_dir)/lib
|
||||
endef
|
||||
Reference in new issue
Block a user