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.

53 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2011-2014 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:=libftdi
  9. PKG_VERSION:=0.20
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/
  13. PKG_MD5SUM:=355d4474e3faa81b485d6a604b06951f
  14. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/libftdi
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. DEPENDS:=+libusb-compat
  22. TITLE:=Library to talk to FTDI chips
  23. URL:=http://www.intra2net.com/en/developer/libftdi/
  24. endef
  25. define Package/libftdi/description
  26. libFTDI - FTDI USB driver with bitbang mode
  27. libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, FT2232H, FT4232H, FT2232D and FT245R, including the popular bitbang mode.
  28. The library is linked with your program in userspace, no kernel driver required.
  29. endef
  30. define Build/InstallDev
  31. $(INSTALL_DIR) $(1)/usr/include/
  32. $(CP) $(PKG_INSTALL_DIR)/usr/include/ftdi.h $(1)/usr/include/
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.{a,so} $(1)/usr/lib/
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so* $(1)/usr/lib/
  36. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libftdi.pc $(1)/usr/lib/pkgconfig/libftdi.pc
  38. endef
  39. define Package/libftdi/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so.* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libftdi))