mirror of
https://github.com/monero-project/monero.git
synced 2024-12-27 16:09:24 -05:00
c444a7e002
- passphrase logic: remove backward compatibility for 2.4.3, code cleanup. - fix LibUSB cmake for static builds on OSX - tests: all tests now work with passphrase logic enabled. Passphrase test added with different passphrase. no_passphrase test added, Trezor pin test added. Testing wallet opening with correct and incorrect passphrase. Trezor test chain revamp, cleanup. Smaller chain, chain file versioning added. - tests: Trezor tests support TEST_MINING_ENABLED, TEST_MINING_TIMEOUT env vars to change mining-related tests behaviour. - requires protobuf@21 on osx for now (c++14), building with unlinked protobuf: `CMAKE_PREFIX_PATH=$(find /opt/homebrew/Cellar/protobuf@21 -maxdepth 1 -type d -name "21.*" -print -quit) \ make debug-test-trezor -j8`
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
package=libusb
|
|
$(package)_version=1.0.26
|
|
$(package)_download_path=https://github.com/libusb/libusb/releases/download/v$($(package)_version)
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
|
$(package)_sha256_hash=12ce7a61fc9854d1d2a1ffe095f7b5fac19ddba095c259e6067a46500381b5a5
|
|
$(package)_patches=fix_osx_avail.patch
|
|
|
|
define $(package)_preprocess_cmds
|
|
patch -p1 < $($(package)_patch_dir)/fix_osx_avail.patch &&\
|
|
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
|
|
$(package)_config_opts_freebsd=--with-pic --disable-udev
|
|
endef
|
|
|
|
ifneq ($(host_os),darwin)
|
|
define $(package)_config_cmds
|
|
cp -f $(BASEDIR)/config.guess config.guess &&\
|
|
cp -f $(BASEDIR)/config.sub config.sub &&\
|
|
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
|
endef
|
|
else
|
|
define $(package)_config_cmds
|
|
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
|
endef
|
|
endif
|
|
|
|
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
|