| 1 |
package=hidapi |
| 2 |
$(package)_version=0.14.0 |
| 3 |
$(package)_download_path=https://github.com/libusb/hidapi/archive/refs/tags |
| 4 |
$(package)_file_name=$(package)-$($(package)_version).tar.gz |
| 5 |
$(package)_sha256_hash=a5714234abe6e1f53647dd8cba7d69f65f71c558b7896ed218864ffcf405bcbd |
| 6 |
$(package)_linux_dependencies=libusb |
| 7 |
$(package)_patches=cmake-fix-libusb.patch |
| 8 |
|
| 9 |
define $(package)_set_vars |
| 10 |
$(package)_config_opts := -DBUILD_SHARED_LIBS=OFF |
| 11 |
$(package)_config_opts += -DHIDAPI_WITH_HIDRAW=OFF |
| 12 |
endef |
| 13 |
|
| 14 |
define $(package)_preprocess_cmds |
| 15 |
patch -p1 < $($(package)_patch_dir)/cmake-fix-libusb.patch |
| 16 |
endef |
| 17 |
|
| 18 |
define $(package)_config_cmds |
| 19 |
$($(package)_cmake) . |
| 20 |
endef |
| 21 |
|
| 22 |
define $(package)_build_cmds |
| 23 |
$(MAKE) |
| 24 |
endef |
| 25 |
|
| 26 |
define $(package)_stage_cmds |
| 27 |
$(MAKE) DESTDIR=$($(package)_staging_dir) install |
| 28 |
endef |