libnfc: new package
authorSimon Dawson <spdawson@gmail.com>
Wed, 2 May 2012 01:40:02 +0000 (01:40 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 14 May 2012 20:23:47 +0000 (22:23 +0200)
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/libnfc/Config.in [new file with mode: 0644]
package/libnfc/libnfc.mk [new file with mode: 0644]

index fb1b08fc511fab1ffa9663fde51a8ff2bd081303..bbb2cd5bf1ea542dc1f0e87eb58f2cfe07a24f30 100644 (file)
@@ -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 (file)
index 0000000..42418e0
--- /dev/null
@@ -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 (file)
index 0000000..f1028b1
--- /dev/null
@@ -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))