1 ################################################################################
5 ################################################################################
8 LIBFTDI1_SOURCE
= libftdi1-
$(LIBFTDI1_VERSION
).
tar.bz2
9 LIBFTDI1_SITE
= http
://www.intra2net.com
/en
/developer
/libftdi
/download
10 LIBFTDI1_INSTALL_STAGING
= YES
11 LIBFTDI1_DEPENDENCIES
= libusb
12 LIBFTDI1_LICENSE
= LGPLv2
(libftdi1
), GPLv2 with exception
(ftdipp1
)
13 LIBFTDI1_LICENSE_FILES
= LICENSE COPYING.GPL COPYING.LIB
14 LIBFTDI1_CONF_OPTS
= -DDOCUMENTATION
=OFF
-DEXAMPLES
=OFF
16 ifeq ($(BR2_PACKAGE_LIBFTDI1_LIBFTDIPP1
),y
)
17 LIBFTDI1_DEPENDENCIES
+= boost
18 LIBFTDI1_CONF_OPTS
+= -DFTDIPP
=ON
20 LIBFTDI1_CONF_OPTS
+= -DFTDIPP
=OFF
23 ifeq ($(BR2_PACKAGE_LIBFTDI1_PYTHON_BINDINGS
),y
)
24 LIBFTDI1_DEPENDENCIES
+= $(if
$(BR2_PACKAGE_PYTHON
),python
,python3
) host-swig
25 LIBFTDI1_CONF_OPTS
+= -DPYTHON_BINDINGS
=ON
27 LIBFTDI1_CONF_OPTS
+= -DPYTHON_BINDINGS
=OFF
30 ifeq ($(BR2_PACKAGE_LIBFTDI1_FDTI_EEPROM
),y
)
31 # ftdi_eeprom optionally depends on libintl, so make sure gettext is built
32 # _before_ libfitdi1 when gettext is enbaled.
33 LIBFTDI1_DEPENDENCIES
+= libconfuse
$(if
$(BR2_PACKAGE_GETTEXT
),gettext
)
34 LIBFTDI1_CONF_OPTS
+= -DFTDI_EEPROM
=ON
36 LIBFTDI1_CONF_OPTS
+= -DFTDI_EEPROM
=OFF
39 $(eval
$(cmake-package
))