diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-07 19:51:09 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-07 19:51:09 +0200 |
commit | 890824dbc024243d503e85b6cd87601dcb67f7e7 (patch) | |
tree | af8218d84cdf22e86f24f3604fdddf5fd05f3872 /contrib/depends/packages/hidapi.mk | |
parent | Merge pull request #4511 (diff) | |
parent | Consolidate HID depends makefiles into single recipe (diff) | |
download | monero-890824dbc024243d503e85b6cd87601dcb67f7e7.tar.xz |
Merge pull request #4510
21a624af Consolidate HID depends makefiles into single recipe (TheCharlatan)
Diffstat (limited to 'contrib/depends/packages/hidapi.mk')
-rw-r--r-- | contrib/depends/packages/hidapi.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/depends/packages/hidapi.mk b/contrib/depends/packages/hidapi.mk index b6b228643..d4dd80e22 100644 --- a/contrib/depends/packages/hidapi.mk +++ b/contrib/depends/packages/hidapi.mk @@ -3,10 +3,16 @@ $(package)_version=0.8.0-rc1 $(package)_download_path=https://github.com/signal11/hidapi/archive $(package)_file_name=$(package)-$($(package)_version).tar.gz $(package)_sha256_hash=3c147200bf48a04c1e927cd81589c5ddceff61e6dac137a605f6ac9793f4af61 +$(package)_linux_dependencies=libusb eudev define $(package)_set_vars -$(package)_config_opts=--enable-static +$(package)_config_opts=--enable-static --disable-shared $(package)_config_opts+=--prefix=$(host_prefix) +$(package)_config_opts_darwin+=RANLIB="$(host_prefix)/native/bin/x86_64-apple-darwin11-ranlib" AR="$(host_prefix)/native/bin/x86_64-apple-darwin11-ar" CC="$(host_prefix)/native/bin/$($(package)_cc)" +$(package)_config_opts_linux+=libudev_LIBS="-L$(host_prefix)/lib -ludev" +$(package)_config_opts_linux+=libudev_CFLAGS=-I$(host_prefix)/include +$(package)_config_opts_linux+=libusb_LIBS="-L$(host_prefix)/lib -lusb-1.0" +$(package)_config_opts_linux+=libusb_CFLAGS=-I$(host_prefix)/include/libusb-1.0 endef define $(package)_config_cmds |