2d1d9c2b507645ba77d6e25b6616e4a213789def
[openwrt/openwrt.git] / package / libs / libusb / Makefile
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.21
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_HASH:=7dce9cce9a81194b7065ee912bcd55eeffebab694ea403ffb91b67db66b1824b
17
18 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=0
20 PKG_LICENSE:=LGPL-2.1
21
22 PKG_MAINTAINER := Felix Fietkau <nbd@nbd.name>
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libusb-1.0
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=A library for accessing Linux USB devices
30 DEPENDS:=+libpthread +librt
31 URL:=http://libusb.wiki.sourceforge.net/
32 endef
33
34 define Package/libusb-1.0/description
35 libusb is a C library that gives applications easy access to USB devices on
36 many different operating systems.
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40 CONFIGURE_ARGS += \
41 --disable-udev \
42 --disable-log
43
44 define Build/InstallDev
45 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
46 endef
47
48 define Package/libusb-1.0/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so* $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage,libusb-1.0))