diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2013-01-05 22:14:54 (GMT) |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2013-01-08 00:11:37 (GMT) |
commit | 604dbdf69f4acc38767c4115014ae11ad7016e85 (patch) | |
tree | ea7386df9aa6bce4ceb4eab0dcb068ed5cd09b01 | |
parent | 4a590bec2f4bd58230e96579fcdc89623b454427 (diff) | |
download | mxe-604dbdf69f4acc38767c4115014ae11ad7016e85.zip mxe-604dbdf69f4acc38767c4115014ae11ad7016e85.tar.gz mxe-604dbdf69f4acc38767c4115014ae11ad7016e85.tar.bz2 |
Add libftdi package.
-rw-r--r-- | index.html | 5 | ||||
-rw-r--r-- | src/libftdi.mk | 26 |
2 files changed, 31 insertions, 0 deletions
@@ -1382,6 +1382,11 @@ USE_OSGPLUGIN(<plugin2>) <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 |