2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-05-02 03:40:02 +02:00
|
|
|
#
|
|
|
|
# libnfc
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2020-06-26 00:10:25 +02:00
|
|
|
LIBNFC_VERSION = 1.8.0
|
2015-07-26 22:38:34 +02:00
|
|
|
LIBNFC_SOURCE = libnfc-$(LIBNFC_VERSION).tar.bz2
|
|
|
|
LIBNFC_SITE = https://github.com/nfc-tools/libnfc/releases/download/libnfc-$(LIBNFC_VERSION)
|
2017-03-30 15:43:35 +02:00
|
|
|
LIBNFC_LICENSE = LGPL-3.0+
|
2012-07-30 09:32:08 +02:00
|
|
|
LIBNFC_LICENSE_FILES = COPYING
|
2012-06-10 11:43:43 +02:00
|
|
|
LIBNFC_AUTORECONF = YES
|
2012-05-02 03:40:02 +02:00
|
|
|
LIBNFC_INSTALL_STAGING = YES
|
|
|
|
|
2019-12-09 22:59:23 +01:00
|
|
|
LIBNFC_DEPENDENCIES = host-pkgconf
|
2012-05-02 03:40:02 +02:00
|
|
|
|
|
|
|
# N.B. The acr122 driver requires pcsc-lite.
|
2019-12-09 22:59:23 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFC_ACR122_PCSC),y)
|
|
|
|
LIBNFC_DRIVER_LIST += acr122_pcsc
|
|
|
|
LIBNFC_DEPENDENCIES += pcsc-lite
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFC_ACR122_USB),y)
|
|
|
|
LIBNFC_DRIVER_LIST += acr122_usb
|
|
|
|
LIBNFC_DEPENDENCIES += libusb libusb-compat
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFC_ACR122S),y)
|
|
|
|
LIBNFC_DRIVER_LIST += acr122s
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFC_ARYGON),y)
|
|
|
|
LIBNFC_DRIVER_LIST += arygon
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFC_PN532_I2C),y)
|
|
|
|
LIBNFC_DRIVER_LIST += pn532_i2c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFC_PN532_SPI),y)
|
|
|
|
LIBNFC_DRIVER_LIST += pn532_spi
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFC_PN532_UART),y)
|
|
|
|
LIBNFC_DRIVER_LIST += pn532_uart
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFC_PN53X_USB),y)
|
|
|
|
LIBNFC_DRIVER_LIST += pn53x_usb
|
|
|
|
LIBNFC_DEPENDENCIES += libusb libusb-compat
|
|
|
|
endif
|
|
|
|
|
|
|
|
LIBNFC_CONF_OPTS = \
|
|
|
|
--with-drivers=$(subst $(space),$(comma),$(strip $(LIBNFC_DRIVER_LIST)))
|
2012-05-02 03:40:02 +02:00
|
|
|
|
2012-06-10 11:43:43 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNFC_EXAMPLES),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBNFC_CONF_OPTS += --enable-example
|
2012-06-10 11:43:43 +02:00
|
|
|
LIBNFC_DEPENDENCIES += readline
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBNFC_CONF_OPTS += --disable-example
|
2012-06-10 11:43:43 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|