usb_modeswitch: bump to version 2.5.0
[buildroot-gz.git] / package / usb_modeswitch / usb_modeswitch.mk
blob57996ab5f95e3d83cd67b0f02cbee97a661d0a75
1 ################################################################################
3 # usb_modeswitch
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
21 endif
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)
27 endef
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)
33 endef
35 $(eval $(generic-package))