2014-06-10 19:02:54 +00:00
#
2015-01-01 19:49:31 +00:00
# Copyright (C) 2011-2015 OpenWrt.org
2014-06-10 19:02:54 +00:00
#
# 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
PKG_VERSION := 0.20
2019-09-21 21:53:34 +00:00
PKG_RELEASE := 6
2014-06-10 19:02:54 +00:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://www.intra2net.com/en/developer/libftdi/download/
2017-08-28 04:28:09 +00:00
PKG_HASH := 3176d5b5986438f33f5208e690a8bfe90941be501cc0a72118ce3d338d4b838e
2014-06-10 19:02:54 +00:00
2019-09-21 21:53:34 +00:00
PKG_MAINTAINER := Álvaro Fernández Rojas <noltari@gmail.com>
2014-07-25 18:45:32 +00:00
PKG_LICENSE := LGPL-2.0
PKG_LICENSE_FILES := COPYING.LIB
2019-09-21 21:53:34 +00:00
CMAKE_INSTALL := 1
PKG_BUILD_PARALLEL := 1
2014-08-08 11:06:46 +00:00
PKG_USE_MIPS16 := 0
2014-06-10 19:02:54 +00:00
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k 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
DEPENDS:= +libusb-compat
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
2019-10-03 01:53:50 +00:00
CMAKE_OPTIONS += \
-DBoost_NO_BOOST_CMAKE= ON \
-DEXAMPLES= OFF
2019-09-23 19:06:32 +00:00
2014-06-10 19:02:54 +00:00
d e f i n e B u i l d / I n s t a l l D e v
2019-09-21 21:53:34 +00:00
$( call Build/InstallDev/cmake,$( 1) )
$( SED) 's,/usr/bin,/usr,g' $( 1) /usr/lib/pkgconfig/libftdi.pc
$( SED) 's,/usr/include,$$$${prefix}/include,g' $( 1) /usr/lib/pkgconfig/libftdi.pc
$( SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $( 1) /usr/lib/pkgconfig/libftdi.pc
$( SED) 's,/usr/bin,/usr,g' $( 1) /usr/lib/pkgconfig/libftdipp.pc
$( SED) 's,/usr/include,$$$${prefix}/include,g' $( 1) /usr/lib/pkgconfig/libftdipp.pc
$( SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $( 1) /usr/lib/pkgconfig/libftdipp.pc
2014-06-10 19:02:54 +00:00
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
2015-01-01 19:49:31 +00:00
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/libftdi-config $( 1) /usr/bin/
2014-06-10 19:02:54 +00:00
$( 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 ) )