aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/packages
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-11-26 22:59:27 -0600
committerluigi1111 <luigi1111w@gmail.com>2021-11-26 22:59:27 -0600
commit41d6db105d452a40e885f162170d94fd4ac2b409 (patch)
treebf21094667de60c820c50d063efc285f61fd9718 /contrib/depends/packages
parentMerge pull request #8048 (diff)
parentdepends: bump hidapi to 0.11.0 (diff)
downloadmonero-41d6db105d452a40e885f162170d94fd4ac2b409.tar.xz
Merge pull request #8055
a30928f depends: bump hidapi to 0.11.0 (selsta)
Diffstat (limited to 'contrib/depends/packages')
-rw-r--r--contrib/depends/packages/hidapi.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/depends/packages/hidapi.mk b/contrib/depends/packages/hidapi.mk
index b76ef1548..8c56f9187 100644
--- a/contrib/depends/packages/hidapi.mk
+++ b/contrib/depends/packages/hidapi.mk
@@ -1,9 +1,10 @@
package=hidapi
-$(package)_version=0.9.0
+$(package)_version=0.11.0
$(package)_download_path=https://github.com/libusb/hidapi/archive
$(package)_file_name=$(package)-$($(package)_version).tar.gz
-$(package)_sha256_hash=630ee1834bdd5c5761ab079fd04f463a89585df8fcae51a7bfe4229b1e02a652
+$(package)_sha256_hash=391d8e52f2d6a5cf76e2b0c079cfefe25497ba1d4659131297081fc0cd744632
$(package)_linux_dependencies=libusb eudev
+$(package)_patches=missing_win_include.patch
define $(package)_set_vars
$(package)_config_opts=--enable-static --disable-shared
@@ -16,6 +17,10 @@ $(package)_config_opts_linux+=libusb_CFLAGS=-I$(host_prefix)/include/libusb-1.0
$(package)_config_opts_linux+=--with-pic
endef
+define $(package)_preprocess_cmds
+ patch -p1 < $($(package)_patch_dir)/missing_win_include.patch
+endef
+
define $(package)_config_cmds
./bootstrap &&\
$($(package)_autoconf) $($(package)_config_opts) AR_FLAGS=$($(package)_arflags)