Add more license tags with SPDX identifiers
[openwrt.git] / package / libs / libusb-compat / 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-compat
11 PKG_VERSION:=0.1.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/libusb
16 PKG_MD5SUM:=2ca521fffadd0c28fdf174e6ec73865b
17
18 PKG_LICENSE:=LGPL-2.1+
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_INSTALL:=1
22 PKG_BUILD_PARALLEL:=1
23 PKG_LICENSE:=LGPL-2.1
24
25 PKG_MAINTAINER := Felix Fietkau <nbd@openwrt.org>
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libusb-compat
30   SECTION:=libs
31   CATEGORY:=Libraries
32   TITLE:=libusb-0.1 compatibility library
33   DEPENDS:=+libusb-1.0
34   URL:=http://libusb.wiki.sourceforge.net/
35 endef
36
37 define Package/libusb-compat/description
38   libusb is a C library that gives applications easy access to USB devices on
39   many different operating systems.
40 endef
41
42 TARGET_CFLAGS += $(FPIC)
43
44 define Build/InstallDev
45         $(INSTALL_DIR) $(STAGING_DIR)/host/bin
46
47         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
48         $(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(STAGING_DIR)/host/bin
49 endef
50
51 define Package/libusb-compat/install
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-0.1.so* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libusb-compat))