mirror of
https://github.com/wownero/wownero.git
synced 2026-11-07 17:04:07 +01:00
Apply the prepared GUI security port on the current public gui branch. The complete Git tree equals candidate 9e9bb026d3d33a29a1607a1bce449e2583b1223f, built during private preparation, and includes the public v0.11.5.0 source.
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
package=libusb
|
|
$(package)_version=1.0.30
|
|
$(package)_download_path=https://github.com/libusb/libusb/releases/download/v$($(package)_version)
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
|
|
$(package)_sha256_hash=fea36f34f9156400209595e300840767ab1a385ede1dc7ee893015aea9c6dbaf
|
|
|
|
define $(package)_preprocess_cmds
|
|
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
|
|
endef
|
|
|
|
# Remove blobs
|
|
define $(package)_preprocess_cmds
|
|
rm -rf tests/fuzz/corpus && \
|
|
rm doc/libusb.png
|
|
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
|