Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (C) 2011 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.19
  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:=e6e25f33b4327b1b7aa1156947da45f3
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/libftdi
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. DEPENDS:=+libusb +libusb-compat
  20. TITLE:=library to talk to FTDI chips
  21. URL:=http://www.intra2net.com/en/developer/libftdi/
  22. endef
  23. define Package/libftdi/description
  24. libFTDI - FTDI USB driver with bitbang mode
  25. libFTDI is an open source library to talk to FTDI chips: FT232BM, FT245BM, FT2232C, FT2232H, FT4232H, FT2232D and FT245R, including the popular bitbang mode.
  26. The library is linked with your program in userspace, no kernel driver required.
  27. endef
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/include/
  30. $(CP) $(PKG_INSTALL_DIR)/usr/include/ftdi.h $(1)/usr/include/
  31. $(INSTALL_DIR) $(1)/usr/lib
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.{a,so} $(1)/usr/lib/
  33. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so* $(1)/usr/lib/
  34. endef
  35. define Package/libftdi/install
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libftdi.so.* $(1)/usr/lib/
  38. endef
  39. $(eval $(call BuildPackage,libftdi))