OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Only display areas with differencesRegard whitespace
Rev 2 Rev 3
1 # 1 #
2 # Copyright (C) 2010-2015 OpenWrt.org 2 # Copyright (C) 2010-2015 OpenWrt.org
3 # 3 #
4 # This is free software, licensed under the GNU General Public License v2. 4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information. 5 # See /LICENSE for more information.
6 # 6 #
7   7  
8 include $(TOPDIR)/rules.mk 8 include $(TOPDIR)/rules.mk
9   9  
10 PKG_NAME:=libusb-compat 10 PKG_NAME:=libusb-compat
11 PKG_VERSION:=0.1.5 11 PKG_VERSION:=0.1.5
12 PKG_RELEASE:=2 12 PKG_RELEASE:=1
13   13  
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/libusb 15 PKG_SOURCE_URL:=@SF/libusb
16 PKG_HASH:=404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a 16 PKG_HASH:=404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a
17   17  
18 PKG_INSTALL:=1 18 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=1 19 PKG_BUILD_PARALLEL:=1
20 PKG_LICENSE:=LGPL-2.1 20 PKG_LICENSE:=LGPL-2.1
21   21  
22 PKG_MAINTAINER := Felix Fietkau <nbd@nbd.name> 22 PKG_MAINTAINER := Felix Fietkau <nbd@nbd.name>
23   23  
24 include $(INCLUDE_DIR)/package.mk 24 include $(INCLUDE_DIR)/package.mk
25   25  
26 define Package/libusb-compat 26 define Package/libusb-compat
27 SECTION:=libs 27 SECTION:=libs
28 CATEGORY:=Libraries 28 CATEGORY:=Libraries
29 TITLE:=libusb-0.1 compatibility library 29 TITLE:=libusb-0.1 compatibility library
30 DEPENDS:=+libusb-1.0 30 DEPENDS:=+libusb-1.0
31 URL:=http://libusb.wiki.sourceforge.net/ 31 URL:=http://libusb.wiki.sourceforge.net/
32 ABI_VERSION:=4 -  
33 endef 32 endef
34   33  
35 define Package/libusb-compat/description 34 define Package/libusb-compat/description
36 libusb is a C library that gives applications easy access to USB devices on 35 libusb is a C library that gives applications easy access to USB devices on
37 many different operating systems. 36 many different operating systems.
38 endef 37 endef
39   38  
40 TARGET_CFLAGS += $(FPIC) 39 TARGET_CFLAGS += $(FPIC)
41   40  
42 define Build/InstallDev 41 define Build/InstallDev
43 $(INSTALL_DIR) $(1) 42 $(INSTALL_DIR) $(1)
44 $(CP) $(PKG_INSTALL_DIR)/* $(1)/ 43 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
45 $(INSTALL_DIR) $(2)/bin 44 $(INSTALL_DIR) $(2)/bin
46 $(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(2)/bin/ 45 $(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(2)/bin/
47 endef 46 endef
48   47  
49 define Package/libusb-compat/install 48 define Package/libusb-compat/install
50 $(INSTALL_DIR) $(1)/usr/lib 49 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-0.1.so* $(1)/usr/lib/ 50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-0.1.so* $(1)/usr/lib/
52 endef 51 endef
53   52  
54 $(eval $(call BuildPackage,libusb-compat)) 53 $(eval $(call BuildPackage,libusb-compat))
55   54