xref: /buildroot/package/usb_modeswitch/usb_modeswitch.mk
  • Home
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • current directory
1################################################################################
2#
3# usb_modeswitch
4#
5################################################################################
6
7USB_MODESWITCH_VERSION = 2.6.1
8USB_MODESWITCH_SOURCE = usb-modeswitch-$(USB_MODESWITCH_VERSION).tar.bz2
9USB_MODESWITCH_SITE = http://www.draisberghof.de/usb_modeswitch
10USB_MODESWITCH_DEPENDENCIES = libusb
11USB_MODESWITCH_LICENSE = GPL-2.0+, BSD-2-Clause
12USB_MODESWITCH_LICENSE_FILES = COPYING
13
14ifeq ($(BR2_PACKAGE_TCL)$(BR2_PACKAGE_TCL_SHLIB_ONLY),y)
15USB_MODESWITCH_DEPENDENCIES += tcl
16USB_MODESWITCH_BUILD_TARGETS = all
17USB_MODESWITCH_INSTALL_TARGETS = install-script
18else
19USB_MODESWITCH_DEPENDENCIES += jimtcl
20USB_MODESWITCH_INSTALL_TARGETS = install-common
21ifeq ($(BR2_STATIC_LIBS),y)
22USB_MODESWITCH_BUILD_TARGETS = all-with-statlink-dispatcher
23else
24USB_MODESWITCH_BUILD_TARGETS = all-with-dynlink-dispatcher
25endif
26endif
27
28define USB_MODESWITCH_BUILD_CMDS
29	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
30		-C $(@D) $(USB_MODESWITCH_BUILD_TARGETS)
31endef
32
33define USB_MODESWITCH_INSTALL_TARGET_CMDS
34	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
35		DESTDIR=$(TARGET_DIR) \
36		-C $(@D) $(USB_MODESWITCH_INSTALL_TARGETS)
37endef
38
39$(eval $(generic-package))
40

Last Index update Fri Aug 22 08:59:00 CST 2025