1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
8 PKG_SOURCE_URL
:=http
://libnfc.googlecode.com
/files
/
9 PKG_MD5SUM
:=88aeb2f6c3ddf32ae52aedc9b179e49c
13 include $(INCLUDE_DIR
)/package.mk
15 define Package
/libnfc
/Default
16 TITLE
:=Near Field Communication
(NFC
) library
17 URL
:=http
://www.libnfc.org
21 $(call Package
/libnfc
/Default
)
24 DEPENDS
:=+libpcsclite
+libusb
+pcscd
+ccid
27 define Package
/libnfc
/description
28 libnfc is a free software library used to communicate with NFC
29 capable devices or
tags. It support the four main NFC modulations
:
30 * ISO14443-A
(NXP MIFARE
),
32 * JIS X
6319-4 (Sony Felica
) and
33 * Jewel Topaz
(Innovision Research
& Development
).
34 Supported NFC hardware devices are theorically
all readers based
35 on the NXP PN53x NFC Controller.
38 define Package
/libnfc-examples
39 $(call Package
/libnfc
/Default
)
45 define Package
/libnfc-examples
/description
46 libnfc is provided with some examples like
:
49 * simple UID emulation
52 TARGET_CFLAGS
+= $(FPIC
)
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 DESTDIR
="$(PKG_INSTALL_DIR)" \
60 define Build
/InstallDev
61 $(INSTALL_DIR
) $(1)/usr
/include
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/nfc
$(1)/usr
/include/
63 $(INSTALL_DIR
) $(1)/usr
/lib
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libnfc.
{a
,so
*} $(1)/usr
/lib
/
65 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libnfc.
pc $(1)/usr
/lib
/pkgconfig
/
69 define Package
/libnfc
/install
70 $(INSTALL_DIR
) $(1)/usr
/lib
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libnfc.so.
* $(1)/usr
/lib
/
74 define Package
/libnfc-examples
/install
75 $(INSTALL_DIR
) $(1)/usr
/bin
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/nfc
* $(1)/usr
/bin
/
79 $(eval
$(call BuildPackage
,libnfc
))
80 $(eval
$(call BuildPackage
,libnfc-examples
))