[packages] update libnfc to 1.3.3, thanks neomilium (#6677)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19775 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,12 +1,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libnfc
|
PKG_NAME:=libnfc
|
||||||
PKG_VERSION:=1.2.1
|
PKG_VERSION:=1.3.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://libnfc.googlecode.com/files/
|
PKG_SOURCE_URL:=http://libnfc.googlecode.com/files/
|
||||||
PKG_MD5SUM:=90ce5d0445c6228f0e80ae3b62709f96
|
PKG_MD5SUM:=88aeb2f6c3ddf32ae52aedc9b179e49c
|
||||||
|
|
||||||
PKG_FIXUP = libtool
|
PKG_FIXUP = libtool
|
||||||
|
|
||||||
@ -35,13 +35,20 @@ define Package/libnfc/description
|
|||||||
on the NXP PN53x NFC Controller.
|
on the NXP PN53x NFC Controller.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/nfc-tools
|
define Package/libnfc-examples
|
||||||
$(call Package/libnfc/Default)
|
$(call Package/libnfc/Default)
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
DEPENDS:=+libnfc
|
DEPENDS:=+libnfc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/libnfc-examples/description
|
||||||
|
libnfc is provided with some examples like:
|
||||||
|
* tag listing
|
||||||
|
* relaying NFC
|
||||||
|
* simple UID emulation
|
||||||
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
TARGET_CFLAGS += $(FPIC)
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
@ -52,7 +59,7 @@ endef
|
|||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(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
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfc.{a,so*} $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfc.{a,so*} $(1)/usr/lib/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
$(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/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfc.so.* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/nfc-tools/install
|
define Package/libnfc-examples/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/nfc-anticol $(1)/usr/bin/
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/nfc* $(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/
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libnfc))
|
$(eval $(call BuildPackage,libnfc))
|
||||||
$(eval $(call BuildPackage,nfc-tools))
|
$(eval $(call BuildPackage,libnfc-examples))
|
||||||
|
Reference in New Issue
Block a user