2015-03-08 12:26:02 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libftdi1
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-08-28 07:34:16 +02:00
|
|
|
LIBFTDI1_VERSION = 1.4
|
2015-03-08 12:26:02 +01:00
|
|
|
LIBFTDI1_SOURCE = libftdi1-$(LIBFTDI1_VERSION).tar.bz2
|
2015-09-28 18:10:31 +02:00
|
|
|
LIBFTDI1_SITE = http://www.intra2net.com/en/developer/libftdi/download
|
2015-03-08 12:26:02 +01:00
|
|
|
LIBFTDI1_INSTALL_STAGING = YES
|
|
|
|
LIBFTDI1_DEPENDENCIES = libusb
|
2017-03-30 15:43:37 +02:00
|
|
|
LIBFTDI1_LICENSE = LGPL-2.0 (libftdi1), GPL-2.0 with exception (ftdipp1)
|
2015-03-08 12:26:02 +01:00
|
|
|
LIBFTDI1_LICENSE_FILES = LICENSE COPYING.GPL COPYING.LIB
|
|
|
|
LIBFTDI1_CONF_OPTS = -DDOCUMENTATION=OFF -DEXAMPLES=OFF
|
|
|
|
|
2015-05-16 09:29:28 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1_LIBFTDIPP1),y)
|
2015-03-08 12:26:02 +01:00
|
|
|
LIBFTDI1_DEPENDENCIES += boost
|
|
|
|
LIBFTDI1_CONF_OPTS += -DFTDIPP=ON
|
|
|
|
else
|
|
|
|
LIBFTDI1_CONF_OPTS += -DFTDIPP=OFF
|
|
|
|
endif
|
|
|
|
|
2015-05-16 09:29:28 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS),y)
|
2015-03-08 12:26:02 +01:00
|
|
|
LIBFTDI1_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3) host-swig
|
|
|
|
LIBFTDI1_CONF_OPTS += -DPYTHON_BINDINGS=ON
|
|
|
|
else
|
|
|
|
LIBFTDI1_CONF_OPTS += -DPYTHON_BINDINGS=OFF
|
|
|
|
endif
|
|
|
|
|
2015-05-16 09:29:28 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1_FDTI_EEPROM),y)
|
2017-07-04 12:30:13 +02:00
|
|
|
# ftdi_eeprom optionally depends on libintl
|
|
|
|
LIBFTDI1_DEPENDENCIES += libconfuse $(TARGET_NLS_DEPENDENCIES)
|
2015-03-08 12:26:02 +01:00
|
|
|
LIBFTDI1_CONF_OPTS += -DFTDI_EEPROM=ON
|
|
|
|
else
|
|
|
|
LIBFTDI1_CONF_OPTS += -DFTDI_EEPROM=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|