mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-19 08:08:38 +02:00
30 lines
847 B
Makefile
30 lines
847 B
Makefile
package=libusb
|
|
$(package)_version=1.0.29
|
|
$(package)_download_path=https://github.com/libusb/libusb/archive/refs/tags
|
|
$(package)_download_file=v$($(package)_version).tar.gz
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=7c2dd39c0b2589236e48c93247c986ae272e27570942b4163cb00a060fcf1b74
|
|
$(package)_patches=CMakeLists.txt config.h.in
|
|
|
|
define $(package)_preprocess_cmds
|
|
cp -f $($(package)_patch_dir)/CMakeLists.txt . && \
|
|
cp -f $($(package)_patch_dir)/config.h.in .
|
|
endef
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts := -DBUILD_SHARED_LIBS=OFF
|
|
$(package)_config_opts_linux += -DLIBUSB_ENABLE_UDEV=OFF
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
$($(package)_cmake) .
|
|
endef
|
|
|
|
define $(package)_build_cmd
|
|
$(MAKE)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
endef
|