You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
3.0 KiB

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>
5 years ago
  1. #
  2. # Copyright (C) 2014-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libftdi1
  9. PKG_VERSION:=1.5
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/
  13. PKG_HASH:=7c7091e9c86196148bd41177b4590dccb1510bfe6cea5bf7407ff194482eb049
  14. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  15. PKG_LICENSE:=LGPL-2.1-only
  16. PKG_LICENSE_FILES:=COPYING.LIB
  17. CMAKE_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_USE_MIPS16:=0
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/libftdi1
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. DEPENDS:=+libusb-1.0
  26. TITLE:=Library to talk to FTDI chips
  27. URL:=http://www.intra2net.com/en/developer/libftdi/
  28. endef
  29. define Package/libftdi1/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.
  33. endef
  34. define Package/ftdi_eeprom
  35. SECTION:=utils
  36. CATEGORY:=Utilities
  37. DEPENDS:=+confuse +libftdi1
  38. TITLE:=Tool for reading/erasing/flashing FTDI USB chip eeproms
  39. URL:=http://www.intra2net.com/en/developer/libftdi/
  40. endef
  41. define Package/ftdi_eeprom/description
  42. ftdi_eeprom is a small tool for reading/erasing/flashing FTDI USB chip
  43. eeproms. It uses libftdi to access the chip, so you will need to have
  44. the required permissions on the device.
  45. The ftdi_sio module should not be loaded.
  46. You have to unplug and replug your device to get the new values to be
  47. read. Otherwise, you will still get the old values.
  48. endef
  49. CMAKE_OPTIONS += \
  50. -DBUILD_TESTS=OFF \
  51. -DDOCUMENTATION=OFF \
  52. -DEXAMPLES=OFF
  53. define Build/InstallDev
  54. $(call Build/InstallDev/cmake,$(1))
  55. $(SED) 's,/usr/bin,/usr,g' $(1)/usr/lib/pkgconfig/libftdi1.pc
  56. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libftdi1.pc
  57. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libftdi1.pc
  58. $(SED) 's,/usr/bin,/usr,g' $(1)/usr/lib/pkgconfig/libftdipp1.pc
  59. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libftdipp1.pc
  60. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libftdipp1.pc
  61. $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/libftdi1-config
  62. $(INSTALL_DIR) $(2)/bin
  63. $(LN) ../../usr/bin/libftdi1-config $(2)/bin/libftdi1-config
  64. endef
  65. define Package/libftdi1/install
  66. $(INSTALL_DIR) $(1)/usr/bin
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libftdi1-config $(1)/usr/bin/
  68. $(INSTALL_DIR) $(1)/usr/lib
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi1.so.* $(1)/usr/lib/
  70. endef
  71. define Package/ftdi_eeprom/install
  72. $(INSTALL_DIR) $(1)/usr/bin
  73. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ftdi_eeprom $(1)/usr/bin/
  74. endef
  75. $(eval $(call BuildPackage,libftdi1))
  76. $(eval $(call BuildPackage,ftdi_eeprom))