e5455191c2bf2be27f4824a3cedd8e12a7f382e5
[openwrt/svn-archive/archive.git] / utils / usb-modeswitch / Makefile
1 #
2 # Copyright (C) 2008 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:=usb_modeswitch
11 PKG_VERSION:=0.9.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch
16 PKG_CAT:=bzcat
17 PKG_MD5SUM:=d84961e86f0c3578f83448a3fb01ef52
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/usb-modeswitch
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=+libusb
25 TITLE:=USB ModeSwitch
26 endef
27
28 define Package/usb-modeswitch/description
29 A mode switching tool for controlling
30 "flip flop" (multiple device) USB gear.
31 endef
32
33 define Build/Compile
34 "$(TARGET_CC)" $(TARGET_CFLAGS) -I $(STAGING_DIR)/include/ \
35 -I $(STAGING_DIR)/usr/include/ -L $(STAGING_DIR)/lib/ \
36 -L $(STAGING_DIR)/usr/lib/ -lusb \
37 -o $(PKG_BUILD_DIR)/usb_modeswitch-OpenWrt \
38 $(PKG_BUILD_DIR)/usb_modeswitch.c
39 endef
40
41 define Package/usb-modeswitch/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/usb_modeswitch-OpenWrt $(1)/usr/bin/usb_modeswitch
44 endef
45
46 $(eval $(call BuildPackage,usb-modeswitch))