mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
depends: hidapi: build with cmake
This commit is contained in:
parent
cda800542d
commit
488de9d3d8
2 changed files with 3 additions and 14 deletions
|
@ -191,7 +191,7 @@ $(1)_cmake=env CC="$$($(1)_cc)" \
|
||||||
CXX="$$($(1)_cxx)" \
|
CXX="$$($(1)_cxx)" \
|
||||||
CXXFLAGS="$$($(1)_cppflags) $$($(1)_cxxflags)" \
|
CXXFLAGS="$$($(1)_cppflags) $$($(1)_cxxflags)" \
|
||||||
LDFLAGS="$$($(1)_ldflags)" \
|
LDFLAGS="$$($(1)_ldflags)" \
|
||||||
cmake -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)" $$($(1)_cmake_opts)
|
cmake -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)" $$($(1)_config_opts)
|
||||||
ifeq ($($(1)_type),build)
|
ifeq ($($(1)_type),build)
|
||||||
$(1)_cmake += -DCMAKE_INSTALL_RPATH:PATH="$$($($(1)_type)_prefix)/lib"
|
$(1)_cmake += -DCMAKE_INSTALL_RPATH:PATH="$$($($(1)_type)_prefix)/lib"
|
||||||
else
|
else
|
||||||
|
|
|
@ -6,18 +6,11 @@ $(package)_sha256_hash=a5714234abe6e1f53647dd8cba7d69f65f71c558b7896ed218864ffcf
|
||||||
$(package)_linux_dependencies=libusb eudev
|
$(package)_linux_dependencies=libusb eudev
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--enable-static --disable-shared
|
$(package)_config_opts+=-DBUILD_SHARED_LIBS=OFF
|
||||||
$(package)_config_opts+=--prefix=$(host_prefix)
|
|
||||||
$(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
|
|
||||||
$(package)_config_opts_linux+=--with-pic
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
./bootstrap &&\
|
$($(package)_cmake) .
|
||||||
$($(package)_autoconf) $($(package)_config_opts)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
|
@ -27,7 +20,3 @@ endef
|
||||||
define $(package)_stage_cmds
|
define $(package)_stage_cmds
|
||||||
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_postprocess_cmds
|
|
||||||
rm lib/*.la
|
|
||||||
endef
|
|
||||||
|
|
Loading…
Reference in a new issue