source: packages/libs/libnfc/Makefile @ 21027

Last change on this file since 21027 was 21027, checked in by nico, 6 years ago

[packages] libnfc: oops, forgot the 1.3.4 md5sum

File size: 2.0 KB
Line 
1#
2# Copyright (C) 2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libnfc
11PKG_VERSION:=1.3.4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://libnfc.googlecode.com/files/
16PKG_MD5SUM:=f89f58e70b72bf4aac0567d0741719c8
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/libnfc/Default
24  TITLE:=Near Field Communication (NFC) library
25  URL:=http://www.libnfc.org
26endef
27
28define Package/libnfc
29$(call Package/libnfc/Default)
30  SECTION:=libs
31  CATEGORY:=Libraries
32  DEPENDS:=+libpcsclite +libusb +pcscd +ccid
33endef
34
35define 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),
39  * ISO14443-B,
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.
44endef
45
46define Package/libnfc-examples
47$(call Package/libnfc/Default)
48  SECTION:=utils
49  CATEGORY:=Utilities
50  DEPENDS:=+libnfc
51endef
52
53define Package/libnfc-examples/description
54  libnfc is provided with some examples like:
55   * tag listing
56   * relaying NFC
57   * simple UID emulation
58endef
59
60TARGET_CFLAGS += $(FPIC)
61
62define 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/
69endef
70
71define Package/libnfc/install
72        $(INSTALL_DIR) $(1)/usr/lib
73        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnfc.so.* $(1)/usr/lib/
74endef
75
76define Package/libnfc-examples/install
77        $(INSTALL_DIR) $(1)/usr/bin
78        $(CP) $(PKG_INSTALL_DIR)/usr/bin/nfc* $(1)/usr/bin/
79endef
80
81$(eval $(call BuildPackage,libnfc))
82$(eval $(call BuildPackage,libnfc-examples))
Note: See TracBrowser for help on using the repository browser.