Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Copyright (C) 2010-2016 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.22
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=\
  13. https://github.com/libusb/libusb/releases/download/v$(PKG_VERSION) \
  14. @SF/$(PKG_NAME)
  15. PKG_HASH:=75aeb9d59a4fdb800d329a545c2e6799f732362193b465ea198f2aa275518157
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=0
  18. PKG_LICENSE:=LGPL-2.1
  19. PKG_MAINTAINER := Felix Fietkau <nbd@nbd.name>
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libusb-1.0
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=A library for accessing Linux USB devices
  25. DEPENDS:=+libpthread +librt
  26. URL:=http://libusb.info/
  27. ABI_VERSION:=0
  28. endef
  29. define Package/libusb-1.0/description
  30. libusb is a C library that gives applications easy access to USB devices on
  31. many different operating systems.
  32. endef
  33. TARGET_CFLAGS += $(FPIC)
  34. CONFIGURE_ARGS += \
  35. --disable-udev \
  36. --disable-log
  37. define Build/InstallDev
  38. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  39. endef
  40. define Package/libusb-1.0/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libusb-1.0))