2 # Copyright (C) 2010-2015 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_HASH
:=ed5bdd160c7b01ef767fb931a81b454f46226d1e2cf58502ced758d3e5a9fdc4
22 PKG_MAINTAINER
:= Felix Fietkau
<nbd@nbd.name
>
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/libusb-compat
29 TITLE
:=libusb-0.1 compatibility library
31 URL
:=http
://libusb.wiki.sourceforge.net
/
34 define Package
/libusb-compat
/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
)
41 define Build
/InstallDev
43 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
44 $(INSTALL_DIR
) $(2)/bin
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/libusb-config
$(2)/bin
/
48 define Package
/libusb-compat
/install
49 $(INSTALL_DIR
) $(1)/usr
/lib
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libusb-0.1.so
* $(1)/usr
/lib
/
53 $(eval
$(call BuildPackage
,libusb-compat
))