Skip to content

Commit

Permalink
depends: hidapi: update to 0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Jan 6, 2025
1 parent 2e8a128 commit fd92a9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 41 deletions.
24 changes: 4 additions & 20 deletions contrib/depends/packages/hidapi.mk
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
package=hidapi
$(package)_version=0.13.1
$(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=476a2c9a4dc7d1fc97dd223b84338dbea3809a84caea2dcd887d9778725490e3
$(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_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"
$(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 && ./bootstrap
$(package)_config_opts+=-DBUILD_SHARED_LIBS=OFF
endef

define $(package)_config_cmds
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
$($(package)_cmake) .
endef

define $(package)_build_cmds
Expand All @@ -31,8 +20,3 @@ endef
define $(package)_stage_cmds
$(MAKE) DESTDIR=$($(package)_staging_dir) install
endef

define $(package)_postprocess_cmds
rm lib/*.la
endef

21 changes: 0 additions & 21 deletions contrib/depends/patches/hidapi/missing_win_include.patch

This file was deleted.

0 comments on commit fd92a9b

Please sign in to comment.