| 1 |
package=libusb |
| 2 |
$(package)_version=1.0.28 |
| 3 |
$(package)_download_path=https://github.com/libusb/libusb/archive/refs/tags |
| 4 |
$(package)_download_file=v$($(package)_version).tar.gz |
| 5 |
$(package)_file_name=$(package)-$($(package)_version).tar.gz |
| 6 |
$(package)_sha256_hash=378b3709a405065f8f9fb9f35e82d666defde4d342c2a1b181a9ac134d23c6fe |
| 7 |
$(package)_patches=CMakeLists.txt config.h.in |
| 8 |
|
| 9 |
define $(package)_preprocess_cmds |
| 10 |
cp -f $($(package)_patch_dir)/CMakeLists.txt . && \ |
| 11 |
cp -f $($(package)_patch_dir)/config.h.in . |
| 12 |
endef |
| 13 |
|
| 14 |
define $(package)_set_vars |
| 15 |
$(package)_config_opts := -DBUILD_SHARED_LIBS=OFF |
| 16 |
$(package)_config_opts_linux += -DLIBUSB_ENABLE_UDEV=OFF |
| 17 |
endef |
| 18 |
|
| 19 |
define $(package)_config_cmds |
| 20 |
$($(package)_cmake) . |
| 21 |
endef |
| 22 |
|
| 23 |
define $(package)_build_cmd |
| 24 |
$(MAKE) |
| 25 |
endef |
| 26 |
|
| 27 |
define $(package)_stage_cmds |
| 28 |
$(MAKE) DESTDIR=$($(package)_staging_dir) install |
| 29 |
endef |