From 604dbdf69f4acc38767c4115014ae11ad7016e85 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 5 Jan 2013 23:14:54 +0100 Subject: Add libftdi package. --- index.html | 5 +++++ src/libftdi.mk | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/libftdi.mk diff --git a/index.html b/index.html index ff1e87b..0908d4a 100644 --- a/index.html +++ b/index.html @@ -1382,6 +1382,11 @@ USE_OSGPLUGIN(<plugin2>) libffi + libftdi + 0.20 + LibFTDI + + libgcrypt 1.5.0 libgcrypt diff --git a/src/libftdi.mk b/src/libftdi.mk new file mode 100644 index 0000000..51c2d81 --- /dev/null +++ b/src/libftdi.mk @@ -0,0 +1,26 @@ +# 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)' \ + --disable-shared \ + --enable-static \ + --without-examples \ + --prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1)' -j '$(JOBS)' install +endef -- cgit v0.12