mxe/src/libftdi.mk

28 lines
860 B
Makefile
Raw Normal View History

2013-01-05 22:14:54 +00:00
# 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)' \
2013-01-08 09:09:12 +00:00
--build="`config.guess`" \
2013-01-05 22:14:54 +00:00
--disable-shared \
--enable-static \
2013-01-08 09:09:12 +00:00
--prefix='$(PREFIX)/$(TARGET)' \
--without-examples
2013-01-05 22:14:54 +00:00
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef