libftdi : fix build error
[packages.git] / libs / libftdi / Makefile
1 #
2 # Copyright (C) 2011 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.19
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:=e6e25f33b4327b1b7aa1156947da45f3
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/cmake.mk
22
23 define Package/libftdi
24   SECTION:=libs
25   CATEGORY:=Libraries
26   DEPENDS:=+libusb-compat
27   TITLE:=library to talk to FTDI chips
28   URL:=http://www.intra2net.com/en/developer/libftdi/
29 endef
30
31 define Package/libftdi/description
32   libFTDI - FTDI USB driver with bitbang mode
33   libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, FT2232H, FT4232H, FT2232D and FT245R, including the popular bitbang mode. 
34   The library is linked with your program in userspace, no kernel driver required.
35 endef
36
37 define Build/InstallDev
38         $(INSTALL_DIR) $(1)/usr/include/
39         $(CP) $(PKG_INSTALL_DIR)/usr/include/libftdi/ftdi.h $(1)/usr/include/
40         $(INSTALL_DIR) $(1)/usr/lib
41         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.{a,so} $(1)/usr/lib/
42         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so* $(1)/usr/lib/
43 endef
44
45 define Package/libftdi/install
46         $(INSTALL_DIR) $(1)/usr/lib
47         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so.* $(1)/usr/lib/
48 endef
49
50 $(eval $(call BuildPackage,libftdi))