]>
Commit | Line | Data |
---|---|---|
bdf41d6c GZ |
1 | ############################################################# |
2 | # | |
3 | # usb_modeswitch | |
4 | # | |
5 | ############################################################# | |
6 | ||
c95e3b84 | 7 | USB_MODESWITCH_VERSION = 1.0.7 |
bdf41d6c GZ |
8 | USB_MODESWITCH_SOURCE = usb_modeswitch-$(USB_MODESWITCH_VERSION).tar.bz2 |
9 | USB_MODESWITCH_SITE = http://www.draisberghof.de/usb_modeswitch | |
10 | USB_MODESWITCH_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install | |
e237c993 | 11 | USB_MODESWITCH_DEPENDENCIES = libusb-compat |
bdf41d6c GZ |
12 | USB_MODESWITCH_MAKE_OPT = CC="$(TARGET_CC)" OPTS="$(TARGET_CFLAGS)" |
13 | ||
14 | $(eval $(call AUTOTARGETS,package,usb_modeswitch)) | |
15 | ||
16 | $(USB_MODESWITCH_TARGET_CONFIGURE): | |
17 | rm -f $(USB_MODESWITCH_DIR)/usb_modeswitch | |
18 | touch $@ | |
19 | ||
20 | $(USB_MODESWITCH_HOOK_POST_INSTALL): | |
21 | chmod a-x $(TARGET_DIR)/etc/usb_modeswitch.conf | |
22 | touch $@ | |
23 | ||
24 | $(USB_MODESWITCH_TARGET_UNINSTALL): | |
25 | $(call MESSAGE,"Uninstalling") | |
26 | rm -f $(TARGET_DIR)/usr/sbin/usb_modeswitch | |
27 | rm -f $(TARGET_DIR)/etc/usb_modeswitch.conf | |
28 | rm -f $(USB_MODESWITCH_TARGET_INSTALL_TARGET) $(USB_MODESWITCH_HOOK_POST_INSTALL) |