mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
29 lines
781 B
Makefile
29 lines
781 B
Makefile
package=hidapi
|
|
$(package)_version=0.15.0
|
|
$(package)_download_path=https://github.com/libusb/hidapi/archive/refs/tags
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=5d84dec684c27b97b921d2f3b73218cb773cf4ea915caee317ac8fc73cef8136
|
|
$(package)_linux_dependencies=libusb
|
|
$(package)_patches=cmake-fix-libusb.patch
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts := -DBUILD_SHARED_LIBS=OFF
|
|
$(package)_config_opts += -DHIDAPI_WITH_HIDRAW=OFF
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
patch -p1 < $($(package)_patch_dir)/cmake-fix-libusb.patch
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
$($(package)_cmake) .
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
endef
|