2018-09-22 20:07:33 +02:00
|
|
|
package=hidapi-darwin
|
|
|
|
$(package)_version=0.8.0-rc1
|
|
|
|
$(package)_download_path=https://github.com/signal11/hidapi/archive
|
|
|
|
$(package)_file_name=hidapi-$($(package)_version).tar.gz
|
|
|
|
$(package)_sha256_hash=3c147200bf48a04c1e927cd81589c5ddceff61e6dac137a605f6ac9793f4af61
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_opts=--enable-static
|
|
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
./bootstrap &&\
|
2018-09-29 22:14:56 +02:00
|
|
|
$($(package)_autoconf) $($(package)_config_opts) 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)"
|
2018-09-22 20:07:33 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|