source: packages/utils/usb-modeswitch/Makefile @ 15244

Last change on this file since 15244 was 15244, checked in by nbd, 8 years ago

nuke $Id$ in /packages as well

File size: 1.1 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=usb_modeswitch
11PKG_VERSION:=0.9.5
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://www.draisberghof.de/usb_modeswitch
16PKG_CAT:=bzcat
17PKG_MD5SUM:=d84961e86f0c3578f83448a3fb01ef52
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/usb-modeswitch
22  SECTION:=utils
23  CATEGORY:=Utilities
24  DEPENDS:=+libusb
25  TITLE:=USB ModeSwitch
26endef
27
28define Package/usb-modeswitch/description
29  A mode switching tool for controlling
30  "flip flop" (multiple device) USB gear.
31endef
32
33define 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
39endef
40
41define Package/usb-modeswitch/install   
42        $(INSTALL_DIR) $(1)/usr/bin
43        $(INSTALL_BIN) $(PKG_BUILD_DIR)/usb_modeswitch-OpenWrt $(1)/usr/bin/usb_modeswitch
44endef
45
46$(eval $(call BuildPackage,usb-modeswitch))
Note: See TracBrowser for help on using the repository browser.