Skip to content

Commit

Permalink
Merge pull request #9167
Browse files Browse the repository at this point in the history
442146a depends: libusb: update to 1.0.27 (tobtoht)
  • Loading branch information
luigi1111 committed Mar 8, 2024
2 parents 20dbf99 + 442146a commit 1d24774
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
24 changes: 8 additions & 16 deletions contrib/depends/packages/libusb.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package=libusb
$(package)_version=1.0.26
$(package)_version=1.0.27
$(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
$(package)_sha256_hash=ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575

define $(package)_preprocess_cmds
patch -p1 < $($(package)_patch_dir)/fix_osx_avail.patch &&\
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub . && \
autoreconf -i
endef

Expand All @@ -18,17 +17,9 @@ define $(package)_set_vars
$(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)_config_cmds
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
endef

define $(package)_build_cmd
$(MAKE)
Expand All @@ -38,5 +29,6 @@ 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
define $(package)_postprocess_cmds
cp -f lib/libusb-1.0.a lib/libusb.a
endef
12 changes: 0 additions & 12 deletions contrib/depends/patches/libusb/fix_osx_avail.patch

This file was deleted.

0 comments on commit 1d24774

Please sign in to comment.