aboutsummaryrefslogtreecommitdiff
path: root/depends/packages/libnatpmp.mk
diff options
context:
space:
mode:
Diffstat (limited to 'depends/packages/libnatpmp.mk')
-rw-r--r--depends/packages/libnatpmp.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/depends/packages/libnatpmp.mk b/depends/packages/libnatpmp.mk
index 2eddc76d9c..caa809ec0b 100644
--- a/depends/packages/libnatpmp.mk
+++ b/depends/packages/libnatpmp.mk
@@ -3,14 +3,18 @@ $(package)_version=07004b97cf691774efebe70404cf22201e4d330d
$(package)_download_path=https://github.com/miniupnp/libnatpmp/archive
$(package)_file_name=$($(package)_version).tar.gz
$(package)_sha256_hash=9321953ceb39d07c25463e266e50d0ae7b64676bb3a986d932b18881ed94f1fb
+$(package)_patches=no_libtool.patch
define $(package)_set_vars
$(package)_build_opts=CC="$($(package)_cc)"
$(package)_build_opts_mingw32=CPPFLAGS=-DNATPMP_STATICLIB
- $(package)_build_opts_darwin=LIBTOOL="$($(package)_libtool)"
$(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)"
endef
+define $(package)_preprocess_cmds
+ patch -p1 < $($(package)_patch_dir)/no_libtool.patch
+endef
+
define $(package)_build_cmds
$(MAKE) libnatpmp.a $($(package)_build_opts)
endef