2 # Copyright (C) 2011 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
://www.intra2net.com
/en
/developer
/libftdi
/download
/
16 PKG_MD5SUM
:=916f65fa68d154621fc0cf1f405f2726
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/libftdi
25 TITLE
:=library to talk to FTDI chips
26 URL
:=http
://www.intra2net.com
/en
/developer
/libftdi
/
29 define Package
/libftdi
/description
30 libFTDI
- FTDI USB driver with bitbang mode
31 libFTDI is an open source library to talk to FTDI chips
: FT232BM
, FT245BM
, FT2232C
, FT2232H
, FT4232H
, FT2232D and FT245R
, including the popular bitbang mode.
32 The library is linked with your program in userspace
, no kernel driver required.
35 define Build
/InstallDev
36 $(INSTALL_DIR
) $(1)/usr
/include/
37 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ftdi.h
$(1)/usr
/include/
38 $(INSTALL_DIR
) $(1)/usr
/lib
39 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libftdi.
{a
,so
} $(1)/usr
/lib
/
40 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libftdi.so
* $(1)/usr
/lib
/
43 define Package
/libftdi
/install
44 $(INSTALL_DIR
) $(1)/usr
/lib
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libftdi.so.
* $(1)/usr
/lib
/
48 $(eval
$(call BuildPackage
,libftdi
))