2018-09-22 12:07:33 -06:00
|
|
|
package=libusb
|
2024-02-13 10:27:22 -07:00
|
|
|
$(package)_version=1.0.27
|
2023-01-18 11:21:13 -07:00
|
|
|
$(package)_download_path=https://github.com/libusb/libusb/releases/download/v$($(package)_version)
|
2018-09-22 12:07:33 -06:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
2024-02-13 10:27:22 -07:00
|
|
|
$(package)_sha256_hash=ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575
|
2018-09-22 12:07:33 -06:00
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2024-02-13 10:27:22 -07:00
|
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub . && \
|
2018-09-22 12:07:33 -06:00
|
|
|
autoreconf -i
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_opts=--disable-shared
|
2018-11-04 16:38:58 -07:00
|
|
|
$(package)_config_opts_linux=--with-pic --disable-udev
|
2018-12-04 14:01:03 -07:00
|
|
|
$(package)_config_opts_mingw32=--disable-udev
|
|
|
|
$(package)_config_opts_darwin=--disable-udev
|
2023-09-29 11:13:37 -06:00
|
|
|
$(package)_config_opts_freebsd=--with-pic --disable-udev
|
2018-09-22 12:07:33 -06:00
|
|
|
endef
|
|
|
|
|
2024-02-13 10:27:22 -07:00
|
|
|
define $(package)_config_cmds
|
|
|
|
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
|
|
|
endef
|
2018-09-22 12:07:33 -06:00
|
|
|
|
|
|
|
define $(package)_build_cmd
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
|
|
|
|
2024-02-13 10:27:22 -07:00
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
cp -f lib/libusb-1.0.a lib/libusb.a
|
2018-09-22 12:07:33 -06:00
|
|
|
endef
|