diff options
-rw-r--r-- | index.html | 4 | ||||
-rw-r--r-- | src/libftdi1-1-dont-build-tests.patch | 14 | ||||
-rw-r--r-- | src/libftdi1.mk | 25 |
3 files changed, 43 insertions, 0 deletions
@@ -1475,6 +1475,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre> <td class="website"><a href="http://www.intra2net.com/en/developer/libftdi/index.php">LibFTDI</a></td> </tr> <tr> + <td class="package">libftdi1</td> + <td class="website"><a href="http://www.intra2net.com/en/developer/libftdi/index.php">LibFTDI1</a></td> + </tr> + <tr> <td class="package">libgcrypt</td> <td class="website"><a href="ftp://ftp.gnupg.org/gcrypt/libgcrypt/">libgcrypt</a></td> </tr> diff --git a/src/libftdi1-1-dont-build-tests.patch b/src/libftdi1-1-dont-build-tests.patch new file mode 100644 index 0000000..bba3a44 --- /dev/null +++ b/src/libftdi1-1-dont-build-tests.patch @@ -0,0 +1,14 @@ +This file is part of MXE. +See index.html for further information. + +diff -Naur a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt.orig 2013-08-22 17:27:01.000000000 +0200 ++++ b/CMakeLists.txt 2013-08-22 17:27:07.000000000 +0200 +@@ -143,7 +143,6 @@ + add_subdirectory(ftdi_eeprom) + add_subdirectory(examples) + add_subdirectory(packages) +-add_subdirectory(test) + + # PkgConfig + set(prefix ${CMAKE_INSTALL_PREFIX}) diff --git a/src/libftdi1.mk b/src/libftdi1.mk new file mode 100644 index 0000000..3292ee1 --- /dev/null +++ b/src/libftdi1.mk @@ -0,0 +1,25 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := libftdi1 +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.0 +$(PKG)_CHECKSUM := 5be76cfd7cd36c5291054638f7caf4137303386f +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://www.intra2net.com/en/developer/libftdi/download/$($(PKG)_FILE) +$(PKG)_DEPS := gcc libusb1 + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://www.intra2net.com/en/developer/libftdi/download.php' | \ + $(SED) -n 's,.*libftdi1-\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && cmake . \ + -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIBUSB_INCLUDE_DIR=$(PREFIX)/$(TARGET)/include/libusb-1.0 + $(MAKE) -C '$(1)' -j '$(JOBS)' install VERBOSE=1 +endef |