update libnfc to 1.3.3, thanks neomilium (#6677)
authorFlorian Fainelli <florian@openwrt.org>
Sat, 20 Feb 2010 11:43:30 +0000 (11:43 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 20 Feb 2010 11:43:30 +0000 (11:43 +0000)
SVN-Revision: 19775

libs/libnfc/Makefile

index cd505f39281bccc3752c1c6887145d90b57571ac..a5715d1f5935e19b220f473a81820ac11fff477a 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libnfc
-PKG_VERSION:=1.2.1
+PKG_VERSION:=1.3.3
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://libnfc.googlecode.com/files/
-PKG_MD5SUM:=90ce5d0445c6228f0e80ae3b62709f96
+PKG_MD5SUM:=88aeb2f6c3ddf32ae52aedc9b179e49c
 
 PKG_FIXUP = libtool
 
@@ -35,13 +35,20 @@ define Package/libnfc/description
   on the NXP PN53x NFC Controller.
 endef
 
-define Package/nfc-tools
+define Package/libnfc-examples
   $(call Package/libnfc/Default)
   SECTION:=utils
   CATEGORY:=Utilities
   DEPENDS:=+libnfc
 endef
 
+define Package/libnfc-examples/description
+  libnfc is provided with some examples like:
+   * tag listing
+   * relaying NFC
+   * simple UID emulation
+endef
+
 TARGET_CFLAGS += $(FPIC)
 
 define Build/Compile
@@ -52,7 +59,7 @@ endef
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/libnfc $(1)/usr/include/
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/nfc $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfc.{a,so*} $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
@@ -64,14 +71,10 @@ define Package/libnfc/install
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfc.so.* $(1)/usr/lib/
 endef
 
-define Package/nfc-tools/install
+define Package/libnfc-examples/install
        $(INSTALL_DIR) $(1)/usr/bin
-       $(CP) $(PKG_INSTALL_DIR)/usr/bin/nfc-anticol $(1)/usr/bin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/bin/nfc-list $(1)/usr/bin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/bin/nfc-mftool $(1)/usr/bin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/bin/nfc-relay $(1)/usr/bin/
-       $(CP) $(PKG_INSTALL_DIR)/usr/bin/nfc-emulate $(1)/usr/bin/
+       $(CP) $(PKG_INSTALL_DIR)/usr/bin/nfc* $(1)/usr/bin/
 endef
 
 $(eval $(call BuildPackage,libnfc))
-$(eval $(call BuildPackage,nfc-tools))
+$(eval $(call BuildPackage,libnfc-examples))