]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
depends: update hidapi to 0.14.0
authortobtoht <tob@featherwallet.org>
Sat, 27 May 2023 14:49:11 +0000 (16:49 +0200)
committertobtoht <tob@featherwallet.org>
Sat, 27 May 2023 14:55:16 +0000 (16:55 +0200)
contrib/depends/packages/hidapi.mk
contrib/depends/patches/hidapi/missing_win_include.patch [deleted file]

index a6441c636aec0c60bf579725bb12650cf90b2aeb..958e265cad33dd515e9a5e668b8cb9c005e84cc9 100644 (file)
@@ -1,15 +1,13 @@
 package=hidapi
-$(package)_version=0.13.0
+$(package)_version=0.14.0
 $(package)_download_path=https://github.com/libusb/hidapi/archive/refs/tags
 $(package)_file_name=$(package)-$($(package)_version).tar.gz
-$(package)_sha256_hash=e35eabe4ad59bd6e24dce6136f084997cdecd9bb7f6e83b40f3cc15b0ea8d56f
+$(package)_sha256_hash=a5714234abe6e1f53647dd8cba7d69f65f71c558b7896ed218864ffcf405bcbd
 $(package)_linux_dependencies=libusb eudev
-$(package)_patches=missing_win_include.patch
 
 define $(package)_set_vars
 $(package)_config_opts=--enable-static --disable-shared
 $(package)_config_opts+=--prefix=$(host_prefix)
-#$(package)_config_opts_darwin+=RANLIB="$(host_prefix)/native/bin/x86_64-apple-darwin-ranlib" AR="$(host_prefix)/native/bin/x86_64-apple-darwin-ar" CC="$(host_prefix)/native/bin/$($(package)_cc)"
 $(package)_config_opts_linux+=libudev_LIBS="-L$(host_prefix)/lib -ludev"
 $(package)_config_opts_linux+=libudev_CFLAGS=-I$(host_prefix)/include
 $(package)_config_opts_linux+=libusb_LIBS="-L$(host_prefix)/lib -lusb-1.0"
@@ -17,10 +15,6 @@ $(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)
@@ -37,4 +31,3 @@ endef
 define $(package)_postprocess_cmds
   rm lib/*.la
 endef
-
diff --git a/contrib/depends/patches/hidapi/missing_win_include.patch b/contrib/depends/patches/hidapi/missing_win_include.patch
deleted file mode 100644 (file)
index 5bbe82d..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-From a77b066311da42ed7654e39c0356a3b951b2e296 Mon Sep 17 00:00:00 2001
-From: selsta <selsta@sent.at>
-Date: Wed, 10 Nov 2021 02:28:54 +0100
-Subject: [PATCH] windows: add missing include for mingw32
-
----
- windows/hid.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/windows/hid.c b/windows/hid.c
-index 24756a4..6d8394c 100644
---- a/windows/hid.c
-+++ b/windows/hid.c
-@@ -33,6 +33,7 @@ typedef LONG NTSTATUS;
- #endif
- #ifdef __MINGW32__
-+#include <devpropdef.h>
- #include <ntdef.h>
- #include <winbase.h>
- #endif