summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormabrand <mabrand@mabrand.nl>2013-01-08 09:02:42 (GMT)
committermabrand <mabrand@mabrand.nl>2013-01-08 09:02:42 (GMT)
commit7901eb7019207f31e275f62a97d96f41c80d183e (patch)
tree1cb7ef7e5aaac9a09c9d686356a6d591cfabe328
parentabd63284518c6acf5bb62bd543e4dddadf96ca54 (diff)
parent604dbdf69f4acc38767c4115014ae11ad7016e85 (diff)
downloadmxe-7901eb7019207f31e275f62a97d96f41c80d183e.zip
mxe-7901eb7019207f31e275f62a97d96f41c80d183e.tar.gz
mxe-7901eb7019207f31e275f62a97d96f41c80d183e.tar.bz2
Merge pull request #116 from uwehermann/libftdi
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