Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright (C) 2010-2013 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:=libusb
  9. PKG_VERSION:=1.0.9
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  13. PKG_MD5SUM:=7f5a02375ad960d4e33a6dae7d63cfcb
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_MAINTAINER := Felix Fietkau <[email protected]>
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libusb-1.0
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=A library for accessing Linux USB devices
  22. DEPENDS:=+libpthread +librt
  23. URL:=http://libusb.wiki.sourceforge.net/
  24. endef
  25. define Package/libusb-1.0/description
  26. libusb is a C library that gives applications easy access to USB devices on
  27. many different operating systems.
  28. endef
  29. TARGET_CFLAGS += $(FPIC)
  30. define Build/InstallDev
  31. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  32. endef
  33. define Package/libusb-1.0/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so* $(1)/usr/lib/
  36. endef
  37. $(eval $(call BuildPackage,libusb-1.0))