summaryrefslogtreecommitdiff
path: root/package/libftdi/libftdi.mk
blob: c1952ac68befb573ee7815b7211528cc9dbd213d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
################################################################################
#
# libftdi
#
################################################################################

LIBFTDI_VERSION = 0.20
LIBFTDI_SITE = http://www.intra2net.com/en/developer/libftdi/download
LIBFTDI_DEPENDENCIES = libusb-compat libusb
HOST_LIBFTDI_DEPENDENCIES = host-libusb-compat host-libusb
LIBFTDI_INSTALL_STAGING = YES
LIBFTDI_CONFIG_SCRIPTS = libftdi-config
LIBFTDI_AUTORECONF = YES

LIBFTDI_CONF_OPTS = --without-examples

# configure detect it automaticaly so we need to force it
ifeq ($(BR2_PACKAGE_LIBTFDI_CPP),y)
LIBFTDI_DEPENDENCIES += boost
LIBFTDI_CONF_OPTS += --enable-libftdipp
else
LIBFTDI_CONF_OPTS += --disable-libftdipp
endif

$(eval $(autotools-package))
$(eval $(host-autotools-package))