2018-09-22 21:07:33 +03:00
|
|
|
package=libusb
|
2018-11-05 01:38:58 +02:00
|
|
|
$(package)_version=1.0.22
|
2018-11-24 15:31:49 +02:00
|
|
|
$(package)_download_path=https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-$($(package)_version)/
|
2018-09-22 21:07:33 +03:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
2018-11-05 01:38:58 +02:00
|
|
|
$(package)_sha256_hash=75aeb9d59a4fdb800d329a545c2e6799f732362193b465ea198f2aa275518157
|
2018-09-22 21:07:33 +03:00
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
|
|
|
autoreconf -i
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_opts=--disable-shared
|
2018-11-05 01:38:58 +02:00
|
|
|
$(package)_config_opts_linux=--with-pic --disable-udev
|
2018-12-04 23:01:03 +02:00
|
|
|
$(package)_config_opts_mingw32=--disable-udev
|
|
|
|
$(package)_config_opts_darwin=--disable-udev
|
2018-09-22 21:07:33 +03:00
|
|
|
endef
|
|
|
|
|
2018-12-04 23:01:03 +02:00
|
|
|
ifneq ($(host_os),darwin)
|
|
|
|
define $(package)_config_cmds
|
|
|
|
cp -f $(BASEDIR)/config.guess config.guess &&\
|
|
|
|
cp -f $(BASEDIR)/config.sub config.sub &&\
|
2019-11-13 15:50:17 +02:00
|
|
|
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
2018-12-04 23:01:03 +02:00
|
|
|
endef
|
|
|
|
else
|
|
|
|
define $(package)_config_cmds
|
2019-11-13 15:50:17 +02:00
|
|
|
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
2018-12-04 23:01:03 +02:00
|
|
|
endef
|
|
|
|
endif
|
2018-09-22 21:07:33 +03:00
|
|
|
|
|
|
|
define $(package)_build_cmd
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
|
|
|
|
2018-12-04 23:01:03 +02:00
|
|
|
define $(package)_postprocess_cmds cp -f lib/libusb-1.0.a lib/libusb.a
|
2018-09-22 21:07:33 +03:00
|
|
|
endef
|