feather/contrib/depends/packages/libusb.mk

34 lines
911 B
Makefile
Raw Normal View History

2022-06-02 12:50:33 +00:00
package=libusb
2023-01-06 15:34:59 +00:00
$(package)_version=1.0.26
$(package)_download_path=https://github.com/libusb/libusb/releases/download/v$($(package)_version)
2022-06-02 12:50:33 +00:00
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
2023-01-06 15:34:59 +00:00
$(package)_sha256_hash=12ce7a61fc9854d1d2a1ffe095f7b5fac19ddba095c259e6067a46500381b5a5
2022-06-02 12:50:33 +00:00
define $(package)_preprocess_cmds
2023-03-23 19:10:01 +00:00
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub . && \
2022-06-02 12:50:33 +00:00
autoreconf -i
endef
define $(package)_set_vars
$(package)_config_opts=--disable-shared
$(package)_config_opts_linux=--with-pic --disable-udev
$(package)_config_opts_mingw32=--disable-udev
$(package)_config_opts_darwin=--disable-udev
endef
2023-03-23 19:10:01 +00:00
define $(package)_config_cmds
$($(package)_autoconf)
endef
2022-06-02 12:50:33 +00:00
define $(package)_build_cmd
$(MAKE)
endef
define $(package)_stage_cmds
$(MAKE) DESTDIR=$($(package)_staging_dir) install
endef
2022-12-21 15:15:22 +00:00
define $(package)_postprocess_cmds
cp -f lib/libusb-1.0.a lib/libusb.a
2022-06-02 12:50:33 +00:00
endef