feather/contrib/depends/packages/libusb.mk

36 lines
1,013 B
Makefile
Raw Normal View History

2022-06-02 12:50:33 +00:00
package=libusb
2024-02-01 01:51:08 +00:00
$(package)_version=1.0.27
2023-01-06 15:34:59 +00:00
$(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
2024-02-01 01:51:08 +00:00
$(package)_sha256_hash=ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575
2024-11-02 16:33:59 +00:00
$(package)_patches=fix-c11-check.patch
2022-06-02 12:50:33 +00:00
define $(package)_preprocess_cmds
2024-11-02 16:33:59 +00:00
patch -p1 < $($(package)_patch_dir)/fix-c11-check.patch && \
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