Makefile 1.1 KB

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