Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # Copyright (C) 2010-2015 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-compat
  9. PKG_VERSION:=0.1.5
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/libusb
  13. PKG_HASH:=404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_LICENSE:=LGPL-2.1
  17. PKG_MAINTAINER := Felix Fietkau <nbd@nbd.name>
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libusb-compat
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=libusb-0.1 compatibility library
  23. DEPENDS:=+libusb-1.0
  24. URL:=http://libusb.wiki.sourceforge.net/
  25. ABI_VERSION:=4
  26. endef
  27. define Package/libusb-compat/description
  28. libusb is a C library that gives applications easy access to USB devices on
  29. many different operating systems.
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)
  34. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  35. $(INSTALL_DIR) $(2)/bin
  36. $(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(2)/bin/
  37. endef
  38. define Package/libusb-compat/install
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-0.1.so* $(1)/usr/lib/
  41. endef
  42. $(eval $(call BuildPackage,libusb-compat))