source: packages/libs/libusb-1.0/Makefile @ 19777

Last change on this file since 19777 was 19777, checked in by florian, 7 years ago

[package] add libusb-1.0 (#6166)

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libusb-1.0
11PKG_VERSION:=1.0.6
12PKG_RELEASE:=1
13
14PKG_SOURCE:=libusb-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-$(PKG_VERSION)
16PKG_MD5SUM:=818c7c02112a53e0c182666ee83f2057
17PKG_BUILD_DIR:=$(BUILD_DIR)/libusb-$(PKG_VERSION)
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/libusb-1.0
22  SECTION:=libs
23  CATEGORY:=Libraries
24  TITLE:=libusb-1.0
25  URL:=http://libusb.wiki.sourceforge.net/
26endef
27
28define Package/libusb-1.0/description
29libusb-1.0
30endef
31
32TARGET_CFLAGS += $(FPIC)
33
34define Build/InstallDev
35        $(MAKE) install
36        $(INSTALL_DIR) $(1)/usr/include
37        $(INSTALL_DIR) $(1)/usr/include/libusb-1.0
38        $(CP) $(PKG_BUILD_DIR)/libusb/libusb.h $(1)/usr/include/libusb-1.0/
39        $(INSTALL_DIR) $(1)/usr/lib
40        $(CP) $(PKG_BUILD_DIR)/libusb/.libs/libusb*.{a,so*} $(1)/usr/lib/
41        $(CP) $(PKG_BUILD_DIR)/libusb/libusb*.la $(1)/usr/lib/
42        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
43        $(CP) $(PKG_BUILD_DIR)/libusb*.pc $(1)/usr/lib/pkgconfig/
44endef
45
46define Package/libusb-1.0/install
47        $(INSTALL_DIR) $(1)/usr/lib
48        $(CP) $(PKG_BUILD_DIR)/libusb/.libs/libusb*.so* $(1)/usr/lib/
49endef
50
51$(eval $(call BuildPackage,libusb-1.0))
Note: See TracBrowser for help on using the repository browser.