libftdi: add license.
[feed/packages.git] / libs / libftdi / Makefile
1 #
2 # Copyright (C) 2011-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libftdi
11 PKG_VERSION:=0.20
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/
16 PKG_MD5SUM:=355d4474e3faa81b485d6a604b06951f
17 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
18
19 PKG_LICENSE:=LGPL-2.0
20 PKG_LICENSE_FILES:=COPYING.LIB
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
26
27 define Package/libftdi
28 SECTION:=libs
29 CATEGORY:=Libraries
30 DEPENDS:=+libusb-compat
31 TITLE:=Library to talk to FTDI chips
32 URL:=http://www.intra2net.com/en/developer/libftdi/
33 endef
34
35 define Package/libftdi/description
36 libFTDI - FTDI USB driver with bitbang mode
37 libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, FT2232H, FT4232H, FT2232D and FT245R, including the popular bitbang mode.
38 The library is linked with your program in userspace, no kernel driver required.
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include/
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/ftdi.h $(1)/usr/include/
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.{a,so} $(1)/usr/lib/
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so* $(1)/usr/lib/
47 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libftdi.pc $(1)/usr/lib/pkgconfig/libftdi.pc
49 endef
50
51 define Package/libftdi/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so.* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libftdi))