aboutsummaryrefslogtreecommitdiff
path: root/depends/packages/miniupnpc.mk
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-08-18 21:03:32 +0800
committerfanquake <fanquake@gmail.com>2020-08-26 11:27:31 +0800
commit3de365e4f15ddaaf6bdb5b3c31529156617d2835 (patch)
treee349f149ab63392c4100656aecac5c99ec025d14 /depends/packages/miniupnpc.mk
parentbbc01a753d40488fa1469c87b31e7a12ddc8b329 (diff)
build: replace wingenminiupnpcstrings sed with a patch in miniupnpc package
We should be able to drop this once we are using 2.1 or later. See upstream commit: 9663c55c61408fdcc39a82987d2243f816b22932.
Diffstat (limited to 'depends/packages/miniupnpc.mk')
-rw-r--r--depends/packages/miniupnpc.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/depends/packages/miniupnpc.mk b/depends/packages/miniupnpc.mk
index fdbe22cda6..49a584e462 100644
--- a/depends/packages/miniupnpc.mk
+++ b/depends/packages/miniupnpc.mk
@@ -3,6 +3,7 @@ $(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)"
@@ -14,7 +15,7 @@ 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 && \
- sed -i.old "s|miniupnpcstrings.h: miniupnpcstrings.h.in wingenminiupnpcstrings|miniupnpcstrings.h: miniupnpcstrings.h.in|" Makefile.mingw
+ patch -p1 < $($(package)_patch_dir)/dont_use_wingen.patch
endef
define $(package)_build_cmds