a67d0c0f2101b10a7c0fa2c7e248f62c1f5d766d
[openwrt/staging/dedeckeh.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_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-compat
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=libusb-0.1 compatibility library
29 DEPENDS:=+libusb-1.0
30 URL:=http://libusb.wiki.sourceforge.net/
31 endef
32
33 define Package/libusb-compat/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 $(INSTALL_DIR) $(STAGING_DIR)/host/bin
42
43 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
44 $(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(STAGING_DIR)/host/bin
45 endef
46
47 define Package/libusb-compat/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-0.1.so* $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,libusb-compat))