2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-09-01 18:04:17 +02:00
|
|
|
#
|
|
|
|
# usb_modeswitch
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-09-01 18:04:17 +02:00
|
|
|
|
2014-03-30 12:22:50 +02:00
|
|
|
USB_MODESWITCH_VERSION = 2.1.1
|
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
|
2013-09-12 02:56:11 +02:00
|
|
|
USB_MODESWITCH_DEPENDENCIES = libusb
|
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
|
|
|
|
2013-06-11 17:22:20 +02:00
|
|
|
USB_MODESWITCH_BUILD_TARGETS = static
|
|
|
|
USB_MODESWITCH_INSTALL_TARGETS = install-static
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TCL)$(BR2_PACKAGE_TCL_SHLIB_ONLY),y)
|
|
|
|
USB_MODESWITCH_DEPENDENCIES += tcl
|
|
|
|
USB_MODESWITCH_BUILD_TARGETS = script
|
|
|
|
USB_MODESWITCH_INSTALL_TARGETS = install-script
|
|
|
|
endif
|
|
|
|
|
2010-04-06 21:50:52 +02:00
|
|
|
define USB_MODESWITCH_BUILD_CMDS
|
2013-06-11 17:22:20 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE -Wall -I." \
|
|
|
|
-C $(@D) $(USB_MODESWITCH_BUILD_TARGETS)
|
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
|
2013-06-11 17:22:20 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
DESTDIR=$(TARGET_DIR) \
|
|
|
|
-C $(@D) $(USB_MODESWITCH_INSTALL_TARGETS)
|
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
|
|
|
$(eval $(generic-package))
|