2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://libnfc.googlecode.com
/files
/
16 PKG_MD5SUM
:=f89f58e70b72bf4aac0567d0741719c8
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/libnfc
/Default
24 TITLE
:=Near Field Communication
(NFC
) library
25 URL
:=http
://www.libnfc.org
29 $(call Package
/libnfc
/Default
)
32 DEPENDS
:=+libpcsclite
+libusb
+pcscd
+ccid
35 define Package
/libnfc
/description
36 libnfc is a free software library used to communicate with NFC
37 capable devices or
tags. It support the four main NFC modulations
:
38 * ISO14443-A
(NXP MIFARE
),
40 * JIS X
6319-4 (Sony Felica
) and
41 * Jewel Topaz
(Innovision Research
& Development
).
42 Supported NFC hardware devices are theorically
all readers based
43 on the NXP PN53x NFC Controller.
46 define Package
/libnfc-examples
47 $(call Package
/libnfc
/Default
)
53 define Package
/libnfc-examples
/description
54 libnfc is provided with some examples like
:
57 * simple UID emulation
60 TARGET_CFLAGS
+= $(FPIC
)
62 define Build
/InstallDev
63 $(INSTALL_DIR
) $(1)/usr
/include
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/nfc
$(1)/usr
/include/
65 $(INSTALL_DIR
) $(1)/usr
/lib
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libnfc.
{a
,so
*} $(1)/usr
/lib
/
67 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libnfc.
pc $(1)/usr
/lib
/pkgconfig
/
71 define Package
/libnfc
/install
72 $(INSTALL_DIR
) $(1)/usr
/lib
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libnfc.so.
* $(1)/usr
/lib
/
76 define Package
/libnfc-examples
/install
77 $(INSTALL_DIR
) $(1)/usr
/bin
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/nfc
* $(1)/usr
/bin
/
81 $(eval
$(call BuildPackage
,libnfc
))
82 $(eval
$(call BuildPackage
,libnfc-examples
))