summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2012-05-02 01:40:02 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-05-14 20:23:47 (GMT)
commit2b35574bc097ad8c364c9a09c3095d22b1392b7e (patch)
tree39178880b6e4f5a2d07a151b232687ecc247b7de
parent0340b45da0afdc3ac1de9ea7169ccee5941dfc3c (diff)
downloadbuildroot-2b35574bc097ad8c364c9a09c3095d22b1392b7e.tar.gz
buildroot-2b35574bc097ad8c364c9a09c3095d22b1392b7e.tar.bz2
libnfc: new package
Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/libnfc/Config.in8
-rw-r--r--package/libnfc/libnfc.mk16
3 files changed, 25 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index fb1b08f..bbb2cd5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -360,6 +360,7 @@ source "package/tslib/Config.in"
source "package/libftdi/Config.in"
source "package/libhid/Config.in"
source "package/libiqrf/Config.in"
+source "package/libnfc/Config.in"
source "package/libusb/Config.in"
source "package/libusb-compat/Config.in"
source "package/libv4l/Config.in"
diff --git a/package/libnfc/Config.in b/package/libnfc/Config.in
new file mode 100644
index 0000000..42418e0
--- /dev/null
+++ b/package/libnfc/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBNFC
+ bool "libnfc"
+ select BR2_PACKAGE_LIBUSB
+ select BR2_PACKAGE_LIBUSB_COMPAT
+ help
+ Public platform independent Near Field Communication (NFC) library.
+
+ http://www.libnfc.org/
diff --git a/package/libnfc/libnfc.mk b/package/libnfc/libnfc.mk
new file mode 100644
index 0000000..f1028b1
--- /dev/null
+++ b/package/libnfc/libnfc.mk
@@ -0,0 +1,16 @@
+#############################################################
+#
+# libnfc
+#
+#############################################################
+LIBNFC_VERSION = 1.5.1
+LIBNFC_SITE = http://libnfc.googlecode.com/files/
+LIBNFC_SOURCE = libnfc-$(LIBNFC_VERSION).tar.gz
+LIBNFC_INSTALL_STAGING = YES
+
+LIBNFC_DEPENDENCIES = host-pkg-config libusb libusb-compat
+
+# N.B. The acr122 driver requires pcsc-lite.
+LIBNFC_CONF_OPT = --with-drivers=arygon,pn53x_usb
+
+$(eval $(call AUTOTARGETS))