1 ################################################################################
5 ################################################################################
7 USB_MODESWITCH_VERSION
= 2.5.0
8 USB_MODESWITCH_SOURCE
= usb-modeswitch-
$(USB_MODESWITCH_VERSION
).
tar.bz2
9 USB_MODESWITCH_SITE
= http
://www.draisberghof.de
/usb_modeswitch
10 USB_MODESWITCH_DEPENDENCIES
= libusb
11 USB_MODESWITCH_LICENSE
= GPLv2
+
12 USB_MODESWITCH_LICENSE_FILES
= COPYING
14 USB_MODESWITCH_BUILD_TARGETS
= static
15 USB_MODESWITCH_INSTALL_TARGETS
= install-static
17 ifeq ($(BR2_PACKAGE_TCL
)$(BR2_PACKAGE_TCL_SHLIB_ONLY
),y
)
18 USB_MODESWITCH_DEPENDENCIES
+= tcl
19 USB_MODESWITCH_BUILD_TARGETS
= script
20 USB_MODESWITCH_INSTALL_TARGETS
= install-script
23 define USB_MODESWITCH_BUILD_CMDS
24 $(TARGET_MAKE_ENV
) $(MAKE
) $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS) -D_GNU_SOURCE -Wall -I." \
26 -C
$(@D
) $(USB_MODESWITCH_BUILD_TARGETS
)
29 define USB_MODESWITCH_INSTALL_TARGET_CMDS
30 $(TARGET_MAKE_ENV
) $(MAKE
) $(TARGET_CONFIGURE_OPTS
) \
31 DESTDIR
=$(TARGET_DIR
) \
32 -C
$(@D
) $(USB_MODESWITCH_INSTALL_TARGETS
)
35 $(eval
$(generic-package
))