remove libusb-legacy and point its users at libusb-compat
[packages.git] / utils / dfu-util / Makefile
1 #
2 # Copyright (C) 2006 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:=dfu-util
11 PKG_VERSION:=r3095
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://sources.nslu2-linux.org/sources
16 PKG_MD5SUM:=2346dddceeab0e7090109f04d9c3a6be
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/dfu-util
23   SECTION:=utils
24   CATEGORY:=Utilities
25   TITLE:=OpenMoko device flash utility
26   URL:=http://wiki.openmoko.org/wiki/Dfu-util
27   DEPENDS:=+libusb-compat
28 endef
29
30 define Package/dfu-util/description
31         Dfu-util is a program that implements the host side of the USB DFU
32         (Universal Serial Bus Device Firmware Upgrade) protocol.
33         This version is specifically used to flash the FIC Neo 1973 mobile phone.
34 endef
35
36 # CONFIGURE_VARS += USB_CFLAGS="-I $(STAGING_DIR)/usr/include" \
37 #                 USB_LIBS="-L $(STAGING_DIR)/usr/lib"
38
39 define Build/Configure
40         (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
41                 ./autogen.sh \
42         );
43         $(call Build/Configure/Default)
44 endef
45
46 define Package/dfu-util/install
47         $(INSTALL_DIR) $(1)/usr/bin
48         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dfu-util $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,dfu-util))