1
0

Makefile 1.2 KB

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