2008-11-05 20:44:52 +00:00
|
|
|
#
|
2010-04-11 20:43:38 +00:00
|
|
|
# Copyright (C) 2008-2010 OpenWrt.org
|
2008-11-05 20:44:52 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2010-01-27 15:33:40 +00:00
|
|
|
PKG_NAME:=usb-modeswitch
|
2010-09-04 17:29:44 +00:00
|
|
|
PKG_VERSION:=1.1.4
|
|
|
|
PKG_RELEASE:=1
|
2008-11-05 20:44:52 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch
|
2010-09-04 17:29:44 +00:00
|
|
|
PKG_MD5SUM:=a04db36bd0fc6fb303df7567f677b714
|
2008-11-05 20:44:52 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/usb-modeswitch
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libusb
|
|
|
|
TITLE:=USB ModeSwitch
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://www.draisberghof.de/usb_modeswitch/
|
2008-11-05 20:44:52 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/usb-modeswitch/description
|
|
|
|
A mode switching tool for controlling
|
|
|
|
"flip flop" (multiple device) USB gear.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2009-10-29 00:19:35 +00:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) \
|
2009-04-29 12:56:17 +00:00
|
|
|
-lusb \
|
2008-11-05 20:44:52 +00:00
|
|
|
-o $(PKG_BUILD_DIR)/usb_modeswitch-OpenWrt \
|
|
|
|
$(PKG_BUILD_DIR)/usb_modeswitch.c
|
|
|
|
endef
|
|
|
|
|
2009-09-20 11:48:12 +00:00
|
|
|
define Package/usb-modeswitch/install
|
2008-11-05 20:44:52 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/usb_modeswitch-OpenWrt $(1)/usr/bin/usb_modeswitch
|
2010-07-04 18:19:03 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/usb
|
|
|
|
$(INSTALL_DATA) ./files/modeswitch.hotplug $(1)/etc/hotplug.d/usb/20-modeswitch
|
2008-11-05 20:44:52 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,usb-modeswitch))
|