Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.24
  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:=7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a
  16. PKG_MAINTAINER:= Felix Fietkau <[email protected]>
  17. PKG_LICENSE:=LGPL-2.1-or-later
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libusb-1.0
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=A library for accessing Linux USB devices
  26. DEPENDS:=+libpthread +librt
  27. URL:=http://libusb.info/
  28. ABI_VERSION:=0
  29. endef
  30. define Package/libusb-1.0/description
  31. libusb is a C library that gives applications easy access to USB devices on
  32. many different operating systems.
  33. endef
  34. TARGET_CFLAGS += $(FPIC)
  35. CONFIGURE_ARGS += \
  36. --disable-udev \
  37. --disable-log
  38. define Build/InstallDev
  39. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  40. endef
  41. define Package/libusb-1.0/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so.* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libusb-1.0))