2 # Copyright (C) 2010-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=f9e2bb5879968467e5ca756cb4e1fa7e
22 PKG_MAINTAINER := Felix Fietkau <nbd@openwrt.org>
24 include $(INCLUDE_DIR)/package.mk
26 define Package/libusb-1.0
29 TITLE:=A library for accessing Linux USB devices
30 DEPENDS:=+libpthread +librt
31 URL:=http://libusb.wiki.sourceforge.net/
34 define Package/libusb-1.0/description
35 libusb is a C library that gives applications easy access to USB devices on
36 many different operating systems.
39 TARGET_CFLAGS += $(FPIC)
44 define Build/InstallDev
45 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
48 define Package/libusb-1.0/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so* $(1)/usr/lib/
53 $(eval $(call BuildPackage,libusb-1.0))