2009-09-01 18:04:17 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# usb_modeswitch
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-04-22 20:58:16 +02:00
|
|
|
USB_MODESWITCH_VERSION = 1.1.2
|
|
|
|
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
|
2009-09-01 18:04:17 +02:00
|
|
|
|
2010-04-06 21:50:52 +02:00
|
|
|
define USB_MODESWITCH_BUILD_CMDS
|
2010-04-22 20:58:16 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -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
|
|
|
|
$(INSTALL) -D $(@D)/usb_modeswitch.setup -m 0644 \
|
|
|
|
$(TARGET_DIR)/etc/usb_modeswitch.setup
|
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_CLEAN_CMDS
|
2010-04-22 20:58:16 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/usb_modeswitch
|
|
|
|
rm -f $(TARGET_DIR)/etc/usb_modeswitch.setup
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man1/usb_modeswitch.1
|
2010-04-06 21:50:52 +02:00
|
|
|
endef
|
2009-09-01 18:04:17 +02:00
|
|
|
|
2011-09-29 21:57:42 +02:00
|
|
|
$(eval $(call GENTARGETS))
|
2010-04-22 20:58:16 +02:00
|
|
|
|