summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2013-01-05 22:14:54 (GMT)
committerUwe Hermann <uwe@hermann-uwe.de>2013-01-08 00:11:37 (GMT)
commit604dbdf69f4acc38767c4115014ae11ad7016e85 (patch)
treeea7386df9aa6bce4ceb4eab0dcb068ed5cd09b01
parent4a590bec2f4bd58230e96579fcdc89623b454427 (diff)
downloadmxe-604dbdf69f4acc38767c4115014ae11ad7016e85.zip
mxe-604dbdf69f4acc38767c4115014ae11ad7016e85.tar.gz
mxe-604dbdf69f4acc38767c4115014ae11ad7016e85.tar.bz2
Add libftdi package.
-rw-r--r--index.html5
-rw-r--r--src/libftdi.mk26
2 files changed, 31 insertions, 0 deletions
diff --git a/index.html b/index.html
index ff1e87b..0908d4a 100644
--- a/index.html
+++ b/index.html
@@ -1382,6 +1382,11 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
<td id="libffi-website"><a href="http://sourceware.org/libffi/">libffi</a></td>
</tr>
<tr>
+ <td id="libftdi-package">libftdi</td>
+ <td id="libftdi-version">0.20</td>
+ <td id="libftdi-website"><a href="http://www.intra2net.com/en/developer/libftdi/index.php">LibFTDI</a></td>
+ </tr>
+ <tr>
<td id="libgcrypt-package">libgcrypt</td>
<td id="libgcrypt-version">1.5.0</td>
<td id="libgcrypt-website"><a href="ftp://ftp.gnupg.org/gcrypt/libgcrypt/">libgcrypt</a></td>
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