summaryrefslogtreecommitdiff
path: root/package/libnfc/libnfc.mk
diff options
context:
space:
mode:
authorSamuel Martin <s.martin49@gmail.com>2012-06-10 09:43:43 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-10 22:32:37 +0200
commit6855bd347013f58f22395f60dfba037d69a693cb (patch)
tree35db5fedafb0ce89d9cd0cf03612af2188960af0 /package/libnfc/libnfc.mk
parentf83df20c863408de3eec03cff60cf4ef4b6be29a (diff)
libnfc: make example build optional
[Peter: trip patch, add AUTORECONF] Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libnfc/libnfc.mk')
-rw-r--r--package/libnfc/libnfc.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/libnfc/libnfc.mk b/package/libnfc/libnfc.mk
index f1028b19e..eef09b0ee 100644
--- a/package/libnfc/libnfc.mk
+++ b/package/libnfc/libnfc.mk
@@ -6,6 +6,7 @@
LIBNFC_VERSION = 1.5.1
LIBNFC_SITE = http://libnfc.googlecode.com/files/
LIBNFC_SOURCE = libnfc-$(LIBNFC_VERSION).tar.gz
+LIBNFC_AUTORECONF = YES
LIBNFC_INSTALL_STAGING = YES
LIBNFC_DEPENDENCIES = host-pkg-config libusb libusb-compat
@@ -13,4 +14,11 @@ LIBNFC_DEPENDENCIES = host-pkg-config libusb libusb-compat
# N.B. The acr122 driver requires pcsc-lite.
LIBNFC_CONF_OPT = --with-drivers=arygon,pn53x_usb
+ifeq ($(BR2_PACKAGE_LIBNFC_EXAMPLES),y)
+LIBNFC_CONF_OPT += --enable-example
+LIBNFC_DEPENDENCIES += readline
+else
+LIBNFC_CONF_OPT += --disable-example
+endif
+
$(eval $(call AUTOTARGETS))