You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/libusb1.mk

26 lines
834 B

# This file is part of MXE.
# See index.html for further information.
PKG := libusb1
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.0.19
$(PKG)_CHECKSUM := c5d14ced155233ceeb5107c7eb3b94b16649ae05
$(PKG)_SUBDIR := libusb-$($(PKG)_VERSION)
$(PKG)_FILE := libusb-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/libusb/libusb-1.0/libusb-$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/libusb/files/libusb-1.0/' | \
grep -i 'libusb/files/libusb-1.0' | \
$(SED) -n 's,.*/libusb-1.0/libusb-\([0-9\.]*\)/.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
CFLAGS=-D_WIN32_WINNT=0x0500
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef