2018-09-22 14:07:33 -04:00
|
|
|
package=hidapi
|
2023-01-18 13:21:13 -05:00
|
|
|
$(package)_version=0.13.1
|
|
|
|
$(package)_download_path=https://github.com/libusb/hidapi/archive/refs/tags
|
2018-09-22 14:07:33 -04:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
2023-01-18 13:21:13 -05:00
|
|
|
$(package)_sha256_hash=476a2c9a4dc7d1fc97dd223b84338dbea3809a84caea2dcd887d9778725490e3
|
2018-10-07 13:16:22 -04:00
|
|
|
$(package)_linux_dependencies=libusb eudev
|
2021-11-09 18:40:54 -05:00
|
|
|
$(package)_patches=missing_win_include.patch
|
2018-09-22 14:07:33 -04:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2018-10-07 13:16:22 -04:00
|
|
|
$(package)_config_opts=--enable-static --disable-shared
|
2018-09-22 14:07:33 -04:00
|
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
2018-10-07 13:16:22 -04:00
|
|
|
$(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
|
2018-10-08 06:25:45 -04:00
|
|
|
$(package)_config_opts_linux+=--with-pic
|
2018-09-22 14:07:33 -04:00
|
|
|
endef
|
|
|
|
|
2021-11-09 18:40:54 -05:00
|
|
|
define $(package)_preprocess_cmds
|
2022-05-09 14:47:33 -04:00
|
|
|
patch -p1 < $($(package)_patch_dir)/missing_win_include.patch && ./bootstrap
|
2021-11-09 18:40:54 -05:00
|
|
|
endef
|
|
|
|
|
2018-09-22 14:07:33 -04:00
|
|
|
define $(package)_config_cmds
|
2022-05-09 14:47:33 -04:00
|
|
|
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
2018-09-22 14:07:33 -04:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
2019-06-17 05:25:10 -04:00
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
rm lib/*.la
|
|
|
|
endef
|
|
|
|
|