2011-05-09 20:20:22 +00:00
#
# Copyright (C) 2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := libftdi
2011-09-30 12:49:05 +00:00
PKG_VERSION := 0.19
2011-05-09 20:20:22 +00:00
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://www.intra2net.com/en/developer/libftdi/download/
2011-09-30 12:49:05 +00:00
PKG_MD5SUM := e6e25f33b4327b1b7aa1156947da45f3
2011-05-09 20:20:22 +00:00
PKG_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / l i b f t d i
SECTION:= libs
CATEGORY:= Libraries
2011-09-30 12:49:05 +00:00
DEPENDS:= +libusb
2011-05-09 20:20:22 +00:00
TITLE:= library to talk to FTDI chips
URL:= http://www.intra2net.com/en/developer/libftdi/
e n d e f
d e f i n e P a c k a g e / l i b f t d i / d e s c r i p t i o n
libFTDI - FTDI USB driver with bitbang mode
libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, FT2232H, FT4232H, FT2232D and FT245R, including the popular bitbang mode.
The library is linked with your program in userspace, no kernel driver required.
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include/
$( CP) $( PKG_INSTALL_DIR) /usr/include/ftdi.h $( 1) /usr/include/
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libftdi.{ a,so} $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libftdi.so* $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b f t d i / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libftdi.so.* $( 1) /usr/lib/
e n d e f
$( eval $ ( call BuildPackage ,libftdi ) )