diff options
author | TheCharlatan <seb.kung@gmail.com> | 2018-09-22 20:07:33 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2018-09-25 12:13:54 +0200 |
commit | 5c234cbdcbd7289539b2df4281ee20fbd12dbea0 (patch) | |
tree | b8ef7ea806cdf8968182668d4f74864f18b9b5e5 /contrib/depends/packages/libusb.mk | |
parent | Merge pull request #4420 (diff) | |
download | monero-5c234cbdcbd7289539b2df4281ee20fbd12dbea0.tar.xz |
Add hidapi to depends
Clang needs to get its cctools path passed directly for the hid build to
succeed.
Make gperf a permanent external dependency.
Remove pcsc from depends.
Diffstat (limited to 'contrib/depends/packages/libusb.mk')
-rw-r--r-- | contrib/depends/packages/libusb.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/depends/packages/libusb.mk b/contrib/depends/packages/libusb.mk new file mode 100644 index 000000000..47f8b3cbc --- /dev/null +++ b/contrib/depends/packages/libusb.mk @@ -0,0 +1,31 @@ +package=libusb +$(package)_version=1.0.9 +$(package)_download_path=http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.9/ +$(package)_file_name=$(package)-$($(package)_version).tar.bz2 +$(package)_sha256_hash=e920eedc2d06b09606611c99ec7304413c6784cba6e33928e78243d323195f9b + +define $(package)_preprocess_cmds + autoreconf -i +endef + +define $(package)_set_vars + $(package)_config_opts=--disable-shared + $(package)_config_opts_linux=--with-pic +endef + +define $(package)_config_cmds + cp -f $(BASEDIR)/config.guess config.guess &&\ + cp -f $(BASEDIR)/config.sub config.sub &&\ + $($(package)_autoconf) +endef + +define $(package)_build_cmd + $(MAKE) +endef + +define $(package)_stage_cmds + $(MAKE) DESTDIR=$($(package)_staging_dir) install +endef + +define $(package)_postprocess_cmds cp -f lib/libusb-1.0.a lib/libusb.a +endef |