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