2009-09-01 18:04:17 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# usb_modeswitch
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2012-03-18 02:30:34 +01:00
|
|
|
USB_MODESWITCH_VERSION = 1.2.4
|
2010-04-22 20:58:16 +02:00
|
|
|
USB_MODESWITCH_SOURCE = usb-modeswitch-$(USB_MODESWITCH_VERSION).tar.bz2
|
2009-09-01 18:04:17 +02:00
|
|
|
USB_MODESWITCH_SITE = http://www.draisberghof.de/usb_modeswitch
|
2010-02-11 14:19:35 +01:00
|
|
|
USB_MODESWITCH_DEPENDENCIES = libusb-compat
|
2012-03-18 02:30:34 +01:00
|
|
|
USB_MODESWITCH_LICENSE = GPLv2+
|
|
|
|
USB_MODESWITCH_LICENSE_FILES = COPYING
|
2009-09-01 18:04:17 +02:00
|
|
|
|
2010-04-06 21:50:52 +02:00
|
|
|
define USB_MODESWITCH_BUILD_CMDS
|
2012-03-18 02:30:34 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
|
2010-04-06 21:50:52 +02:00
|
|
|
endef
|
2009-09-01 18:04:17 +02:00
|
|
|
|
2010-04-06 21:50:52 +02:00
|
|
|
define USB_MODESWITCH_INSTALL_TARGET_CMDS
|
2010-04-22 20:58:16 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
2010-04-06 21:50:52 +02:00
|
|
|
endef
|
2009-09-01 18:04:17 +02:00
|
|
|
|
2012-03-18 02:30:34 +01:00
|
|
|
|
2010-04-06 21:50:52 +02:00
|
|
|
define USB_MODESWITCH_CLEAN_CMDS
|
2012-03-18 02:30:34 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) clean
|
2010-04-06 21:50:52 +02:00
|
|
|
endef
|
2009-09-01 18:04:17 +02:00
|
|
|
|
2012-03-18 02:30:34 +01:00
|
|
|
define USB_MODESWITCH_UNINSTALL_CMDS
|
|
|
|
$(RM) -f $(TARGET_DIR)/usr/sbin/usb_modeswitch
|
|
|
|
$(RM) -f $(TARGET_DIR)/lib/udev/usb_modeswitch
|
|
|
|
$(RM) -f $(TARGET_DIR)/etc/usb_modeswitch.setup
|
|
|
|
$(RM) -f $(TARGET_DIR)/usr/share/man/man1/usb_modeswitch.1
|
|
|
|
$(RM) -rf $(TARGET_DIR)/var/lib/usb_modeswitch
|
|
|
|
$(RM) -f $(TARGET_DIR)/usr/sbin/usb_modeswitch_dispatcher
|
|
|
|
endef
|
2010-04-22 20:58:16 +02:00
|
|
|
|
2012-03-18 02:30:34 +01:00
|
|
|
$(eval $(generic-package))
|