300f9c9c9d
Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
24 lines
636 B
Makefile
24 lines
636 B
Makefile
#############################################################
|
|
#
|
|
# libftdi
|
|
#
|
|
#############################################################
|
|
LIBFTDI_VERSION = 0.19
|
|
LIBFTDI_SOURCE = libftdi-$(LIBFTDI_VERSION).tar.gz
|
|
LIBFTDI_SITE = http://www.intra2net.com/en/developer/libftdi/download/
|
|
LIBFTDI_DEPENDENCIES = libusb-compat libusb
|
|
LIBFTDI_INSTALL_STAGING = YES
|
|
|
|
LIBFTDI_AUTORECONF = YES
|
|
|
|
LIBFDTI_CONF_OPT = --without-examples
|
|
|
|
# configure detect it automaticaly so we need to force it
|
|
ifeq ($(BR2_PACKAGE_LIBTFDI_CPP),y)
|
|
LIBFDTI_CONF_OPT += --enable-libftdipp
|
|
else
|
|
LIBFDTI_CONF_OPT += --disable-libftdipp
|
|
endif
|
|
|
|
$(eval $(call AUTOTARGETS))
|