2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/libusb
17 PKG_MD5SUM
:=caf182cbc7565dac0fd72155919672e6
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
27 TITLE
:=A library for accessing Linux USB devices
28 URL
:=http
://libusb.sourceforge.net
/
31 define Build
/Configure
32 $(call Build
/Configure
/Default
, \
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 DESTDIR
="$(PKG_INSTALL_DIR)" \
44 define Build
/InstallDev
46 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/libusb-config
$(1)/usr
/bin
/
47 mkdir
-p
$(1)/usr
/include
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/usb.h
$(1)/usr
/include/
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libusb
*.
{a
,so
*} $(1)/usr
/lib
/
51 mkdir
-p
$(1)/usr
/lib
/pkgconfig
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libusb.
pc $(1)/usr
/lib
/pkgconfig
/
55 define Package
/libusb
/install
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libusb
*.so.
* $(1)/usr
/lib
/
60 $(eval
$(call BuildPackage
,libusb
))