2 # Copyright (C) 2010-2016 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
16 https
://github.com
/libusb
/libusb
/releases
/download
/v
$(PKG_VERSION
) \
18 PKG_HASH
:=7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a
20 PKG_MAINTAINER
:= Felix Fietkau
<nbd@nbd.name
>
21 PKG_LICENSE
:=LGPL-2.1
-or-later
22 PKG_LICENSE_FILES
:=COPYING
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/libusb-1.0
32 TITLE
:=A library for accessing Linux USB devices
33 DEPENDS
:=+libpthread
+librt
34 URL
:=http
://libusb.
info/
38 define Package
/libusb-1.0
/description
39 libusb is a C library that gives applications easy access to USB devices on
40 many different operating systems.
43 TARGET_CFLAGS
+= $(FPIC
)
48 define Build
/InstallDev
49 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
52 define Package
/libusb-1.0
/install
53 $(INSTALL_DIR
) $(1)/usr
/lib
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libusb
*.so.
* $(1)/usr
/lib
/
57 $(eval
$(call BuildPackage
,libusb-1.0
))