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
10 PKG_NAME:=libusb-compat
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/libusb
16 PKG_MD5SUM:=2ca521fffadd0c28fdf174e6ec73865b
21 PKG_MAINTAINER := Felix Fietkau <nbd@openwrt.org>
23 include $(INCLUDE_DIR)/package.mk
25 define Package/libusb-compat
28 TITLE:=libusb-0.1 compatibility library
30 URL:=http://libusb.wiki.sourceforge.net/
33 define Package/libusb-compat/description
34 libusb is a C library that gives applications easy access to USB devices on
35 many different operating systems.
38 TARGET_CFLAGS += $(FPIC)
40 define Build/InstallDev
41 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
42 $(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(STAGING_DIR)/host/bin
45 define Package/libusb-compat/install
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-0.1.so* $(1)/usr/lib/
50 $(eval $(call BuildPackage,libusb-compat))