mxe/src/libftdi.mk

43 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2013-01-05 22:14:54 +00:00
PKG := libftdi
2017-03-05 03:41:39 +00:00
$(PKG)_WEBSITE := https://www.intra2net.com/en/developer/libftdi/index.php
$(PKG)_DESCR := LibFTDI
2013-01-05 22:14:54 +00:00
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.20
$(PKG)_CHECKSUM := 3176d5b5986438f33f5208e690a8bfe90941be501cc0a72118ce3d338d4b838e
2013-01-05 22:14:54 +00:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
2017-03-05 03:41:39 +00:00
$(PKG)_URL := https://www.intra2net.com/en/developer/libftdi/download/$($(PKG)_FILE)
$(PKG)_DEPS := cc libusb
2013-01-05 22:14:54 +00:00
$(PKG)_MESSAGE :=*** libftdi is deprecated - please use libftdi1 ***
2013-01-05 22:14:54 +00:00
define $(PKG)_UPDATE
echo 'Warning: libftdi is deprecated' >&2;
echo $(libftdi_VERSION)
endef
define $(PKG)_UPDATE_DISABLED
2017-03-05 03:41:39 +00:00
$(WGET) -q -O- 'https://www.intra2net.com/en/developer/libftdi/download.php' | \
2013-01-05 22:14:54 +00:00
$(SED) -n 's,.*libftdi-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD_DISABLED
2013-01-05 22:14:54 +00:00
cd '$(1)' && ./configure \
--host='$(TARGET)' \
2013-01-08 09:09:12 +00:00
--build="`config.guess`" \
2013-01-05 22:14:54 +00:00
--disable-shared \
--enable-static \
2013-01-08 09:09:12 +00:00
--prefix='$(PREFIX)/$(TARGET)' \
--disable-libftdipp \
--disable-python-binding \
--without-examples \
2014-12-06 17:30:09 +00:00
--without-docs \
HAVELIBUSB=true
2013-01-05 22:14:54 +00:00
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef
$(PKG)_BUILD_SHARED =