2014-07-25 18:46:03 +00:00
#
2017-12-31 17:05:13 +00:00
# Copyright (C) 2014-2017 OpenWrt.org
2014-07-25 18:46:03 +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 := libftdi1
2020-09-02 23:15:00 +00:00
PKG_VERSION := 1.5
2020-12-08 02:41:23 +00:00
PKG_RELEASE := 2
2014-07-25 18:46:03 +00:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.bz2
PKG_SOURCE_URL := http://www.intra2net.com/en/developer/libftdi/download/
2020-09-02 23:15:00 +00:00
PKG_HASH := 7c7091e9c86196148bd41177b4590dccb1510bfe6cea5bf7407ff194482eb049
2014-07-25 18:46:03 +00:00
2019-09-13 02:29:00 +00:00
PKG_MAINTAINER := Álvaro Fernández Rojas <noltari@gmail.com>
PKG_LICENSE := LGPL-2.1-only
2014-07-25 18:46:03 +00:00
PKG_LICENSE_FILES := COPYING.LIB
2019-09-13 02:29:00 +00:00
CMAKE_INSTALL := 1
2014-08-08 11:11:06 +00:00
PKG_USE_MIPS16 := 0
2014-07-25 18:46:03 +00:00
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
2021-03-04 22:45:01 +00:00
i n c l u d e . . / . . / d e v e l / n i n j a / n i n j a - c m a k e . m k
2014-07-25 18:46:03 +00:00
d e f i n e P a c k a g e / l i b f t d i 1
SECTION:= libs
CATEGORY:= Libraries
DEPENDS:= +libusb-1.0
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 1 / 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
2015-01-01 19:51:22 +00:00
d e f i n e P a c k a g e / f t d i _ e e p r o m
2015-01-03 15:10:10 +00:00
SECTION:= utils
CATEGORY:= Utilities
2015-01-01 19:51:22 +00:00
DEPENDS:= +confuse +libftdi1
TITLE:= Tool for reading/erasing/flashing FTDI USB chip eeproms
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 / f t d i _ e e p r o m / d e s c r i p t i o n
ftdi_eeprom is a small tool for reading/erasing/flashing FTDI USB chip
eeproms. It uses libftdi to access the chip, so you will need to have
the required permissions on the device.
2015-01-03 15:10:10 +00:00
The ftdi_sio module should not be loaded.
2015-01-01 19:51:22 +00:00
You have to unplug and replug your device to get the new values to be
read. Otherwise, you will still get the old values.
e n d e f
2019-09-13 02:29:00 +00:00
CMAKE_OPTIONS += \
2019-05-15 21:46:13 +00:00
-DBUILD_TESTS= OFF \
libftdi1: disable building documentation
This fixes the following build failure:
[ 66%] Generating ../doc/xml/ftdi_8c.xml
warning: Tag 'PERL_PATH' at line 2083 of file 'Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'MSCGEN_PATH' at line 2105 of file 'Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
[ 72%] Generating ftdi1_doc.i
Traceback (most recent call last):
File "/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/libftdi1-1.4/python/doxy2swig.py", line 457, in <module>
main()
File "/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/libftdi1-1.4/python/doxy2swig.py", line 453, in main
convert(args[0], args[1], not options.func_def, options.quiet)
File "/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/libftdi1-1.4/python/doxy2swig.py", line 430, in convert
p = Doxy2SWIG(input, include_function_definition, quiet)
File "/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/libftdi1-1.4/python/doxy2swig.py", line 72, in __init__
f = my_open_read(src)
File "/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/libftdi1-1.4/python/doxy2swig.py", line 44, in my_open_read
return open(source)
FileNotFoundError: [Errno 2] No such file or directory: '/home/stijn/Development/LEDE/source/build_dir/target-x86_64_musl/libftdi1-1.4/doc/xml/ftdi_8c.xml'
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Rosen Penev <rosenp@gmail.com>
2020-01-16 22:24:40 +00:00
-DDOCUMENTATION= OFF \
2019-09-13 20:14:48 +00:00
-DEXAMPLES= OFF
2014-07-25 18:46:03 +00:00
2019-09-16 17:44:38 +00:00
d e f i n e B u i l d / I n s t a l l D e v
$( call Build/InstallDev/cmake,$( 1) )
2019-09-21 21:56:07 +00:00
$( SED) 's,/usr/bin,/usr,g' $( 1) /usr/lib/pkgconfig/libftdi1.pc
2019-09-16 17:44:38 +00:00
$( SED) 's,/usr/include,$$$${prefix}/include,g' $( 1) /usr/lib/pkgconfig/libftdi1.pc
2019-09-21 21:56:07 +00:00
$( SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $( 1) /usr/lib/pkgconfig/libftdi1.pc
$( SED) 's,/usr/bin,/usr,g' $( 1) /usr/lib/pkgconfig/libftdipp1.pc
2019-09-16 19:01:37 +00:00
$( SED) 's,/usr/include,$$$${prefix}/include,g' $( 1) /usr/lib/pkgconfig/libftdipp1.pc
2019-09-21 21:56:07 +00:00
$( SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $( 1) /usr/lib/pkgconfig/libftdipp1.pc
2020-12-08 02:41:23 +00:00
$( SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $( 1) /usr/bin/libftdi1-config
$( INSTALL_DIR) $( 2) /bin
$( LN) ../../usr/bin/libftdi1-config $( 2) /bin/libftdi1-config
2019-09-16 17:44:38 +00:00
e n d e f
2014-07-25 18:46:03 +00:00
d e f i n e P a c k a g e / l i b f t d i 1 / i n s t a l l
2015-01-01 19:51:22 +00:00
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/libftdi1-config $( 1) /usr/bin/
2014-07-25 18:46:03 +00:00
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libftdi1.so.* $( 1) /usr/lib/
e n d e f
2015-01-01 19:51:22 +00:00
d e f i n e P a c k a g e / f t d i _ e e p r o m / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/ftdi_eeprom $( 1) /usr/bin/
e n d e f
2014-07-25 18:46:03 +00:00
$( eval $ ( call BuildPackage ,libftdi 1) )
2015-01-01 19:51:22 +00:00
$( eval $ ( call BuildPackage ,ftdi_eeprom ) )