1
0

Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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:=1
  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. endef
  28. define Package/libusb-1.0/description
  29. libusb is a C library that gives applications easy access to USB devices on
  30. many different operating systems.
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. CONFIGURE_ARGS += \
  34. --disable-udev \
  35. --disable-log
  36. define Build/InstallDev
  37. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  38. endef
  39. define Package/libusb-1.0/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libusb-1.0))