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