OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2010-2016 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | |||
10 | PKG_NAME:=libusb |
||
11 | PKG_VERSION:=1.0.22 |
||
3 | office | 12 | PKG_RELEASE:=1 |
1 | office | 13 | |
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
||
15 | PKG_SOURCE_URL:=\ |
||
16 | https://github.com/libusb/libusb/releases/download/v$(PKG_VERSION) \ |
||
17 | @SF/$(PKG_NAME) |
||
18 | PKG_HASH:=75aeb9d59a4fdb800d329a545c2e6799f732362193b465ea198f2aa275518157 |
||
19 | |||
20 | PKG_INSTALL:=1 |
||
21 | PKG_BUILD_PARALLEL:=0 |
||
22 | PKG_LICENSE:=LGPL-2.1 |
||
23 | |||
24 | PKG_MAINTAINER := Felix Fietkau <nbd@nbd.name> |
||
25 | |||
26 | include $(INCLUDE_DIR)/package.mk |
||
27 | |||
28 | define Package/libusb-1.0 |
||
29 | SECTION:=libs |
||
30 | CATEGORY:=Libraries |
||
31 | TITLE:=A library for accessing Linux USB devices |
||
32 | DEPENDS:=+libpthread +librt |
||
33 | URL:=http://libusb.info/ |
||
34 | endef |
||
35 | |||
36 | define Package/libusb-1.0/description |
||
37 | libusb is a C library that gives applications easy access to USB devices on |
||
38 | many different operating systems. |
||
39 | endef |
||
40 | |||
41 | TARGET_CFLAGS += $(FPIC) |
||
42 | CONFIGURE_ARGS += \ |
||
43 | --disable-udev \ |
||
44 | --disable-log |
||
45 | |||
46 | define Build/InstallDev |
||
47 | $(CP) $(PKG_INSTALL_DIR)/* $(1)/ |
||
48 | endef |
||
49 | |||
50 | define Package/libusb-1.0/install |
||
51 | $(INSTALL_DIR) $(1)/usr/lib |
||
3 | office | 52 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so* $(1)/usr/lib/ |
1 | office | 53 | endef |
54 | |||
55 | $(eval $(call BuildPackage,libusb-1.0)) |