blob: bc60deb85d4274496dd3ff8cefad1815866a90ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# This file is part of MXE.
# See index.html for further information.
PKG := libftdi
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 4bc6ce70c98a170ada303fbd00b8428d8a2c1aa2
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://www.intra2net.com/en/developer/libftdi/download/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libusb
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.intra2net.com/en/developer/libftdi/download.php' | \
$(SED) -n 's,.*libftdi-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--build="`config.guess`" \
--disable-shared \
--enable-static \
--prefix='$(PREFIX)/$(TARGET)' \
--without-examples \
HAVELIBUSB=true
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef
|