333b0a9ff1
* Update usb-modeswitch to v1.1.7 * Update usb-modeswitch-data to v20110227 Signed-off-by: Layne Edwards <ledwards76@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@26866 3c298f89-4303-0410-b956-a3cf2f4a3e73
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2008-2010 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=usb-modeswitch
|
|
PKG_VERSION:=1.1.7
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch
|
|
PKG_MD5SUM:=b75e42b7b2d30e9d4cbd5c159f925247
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/usb-modeswitch
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
DEPENDS:=+libusb
|
|
TITLE:=USB ModeSwitch
|
|
URL:=http://www.draisberghof.de/usb_modeswitch/
|
|
endef
|
|
|
|
define Package/usb-modeswitch/description
|
|
A mode switching tool for controlling
|
|
"flip flop" (multiple device) USB gear.
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) \
|
|
-lusb \
|
|
-o $(PKG_BUILD_DIR)/usb_modeswitch-OpenWrt \
|
|
$(PKG_BUILD_DIR)/usb_modeswitch.c
|
|
endef
|
|
|
|
define Package/usb-modeswitch/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/usb_modeswitch-OpenWrt $(1)/usr/bin/usb_modeswitch
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/usb
|
|
$(INSTALL_DATA) ./files/modeswitch.hotplug $(1)/etc/hotplug.d/usb/20-modeswitch
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,usb-modeswitch))
|