1 These patches are currently required to get a properly working
2 MXE setup for sigrok usage.
4 - libsigrok currently requires a special libusb branch.
6 - Force libzip to use its own mkstemp() implementation.
7 http://sigrok.org/bugzilla/show_bug.cgi?id=570#c2
9 diff --git a/src/libusb1.mk b/src/libusb1.mk
10 index 0b58dff3..281a1169 100644
13 @@ -5,10 +5,10 @@ $(PKG)_WEBSITE := http://libusb.org/
14 $(PKG)_DESCR := LibUsb-1.0
16 $(PKG)_VERSION := 1.0.21
17 -$(PKG)_CHECKSUM := 7dce9cce9a81194b7065ee912bcd55eeffebab694ea403ffb91b67db66b1824b
18 -$(PKG)_SUBDIR := libusb-$($(PKG)_VERSION)
19 -$(PKG)_FILE := libusb-$($(PKG)_VERSION).tar.bz2
20 -$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/project/libusb/libusb-1.0/libusb-$($(PKG)_VERSION)/$($(PKG)_FILE)
21 +$(PKG)_CHECKSUM := 58fee7f3f05fda209d14c55763df36ab86028bd9ab82c9bb74f1d5ab3208bcfd
22 +$(PKG)_SUBDIR := libusb-event-abstraction-v4
23 +$(PKG)_FILE := libusb-event-abstraction-v4.zip
24 +$(PKG)_URL := https://github.com/dickens/libusb/archive/event-abstraction-v4.zip
28 @@ -19,7 +19,7 @@ define $(PKG)_UPDATE
32 - cd '$(1)' && ./configure \
33 + cd '$(1)' && autoreconf -i && ./configure \
34 $(MXE_CONFIGURE_OPTS) \
35 CFLAGS=-D_WIN32_WINNT=0x0500
36 $(MAKE) -C '$(1)' -j '$(JOBS)' install
37 diff --git a/src/libzip.mk b/src/libzip.mk
38 index 28ea792c..ee1bcfbe 100644
41 @@ -18,7 +18,8 @@ endef
44 cd '$(1)' && ./configure \
45 - $(MXE_CONFIGURE_OPTS)
46 + $(MXE_CONFIGURE_OPTS) \
47 + ac_cv_func_mkstemp=no
48 $(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_CRUFT) SUBDIRS=lib