]> Git Repo - buildroot-mgba.git/blame - package/usb_modeswitch/usb_modeswitch.mk
libusb: bump version, convert to autotools, add -compat lib
[buildroot-mgba.git] / package / usb_modeswitch / usb_modeswitch.mk
CommitLineData
bdf41d6c
GZ
1#############################################################
2#
3# usb_modeswitch
4#
5#############################################################
6
c95e3b84 7USB_MODESWITCH_VERSION = 1.0.7
bdf41d6c
GZ
8USB_MODESWITCH_SOURCE = usb_modeswitch-$(USB_MODESWITCH_VERSION).tar.bz2
9USB_MODESWITCH_SITE = http://www.draisberghof.de/usb_modeswitch
10USB_MODESWITCH_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
e237c993 11USB_MODESWITCH_DEPENDENCIES = libusb-compat
bdf41d6c
GZ
12USB_MODESWITCH_MAKE_OPT = CC="$(TARGET_CC)" OPTS="$(TARGET_CFLAGS)"
13
14$(eval $(call AUTOTARGETS,package,usb_modeswitch))
15
16$(USB_MODESWITCH_TARGET_CONFIGURE):
17 rm -f $(USB_MODESWITCH_DIR)/usb_modeswitch
18 touch $@
19
20$(USB_MODESWITCH_HOOK_POST_INSTALL):
21 chmod a-x $(TARGET_DIR)/etc/usb_modeswitch.conf
22 touch $@
23
24$(USB_MODESWITCH_TARGET_UNINSTALL):
25 $(call MESSAGE,"Uninstalling")
26 rm -f $(TARGET_DIR)/usr/sbin/usb_modeswitch
27 rm -f $(TARGET_DIR)/etc/usb_modeswitch.conf
28 rm -f $(USB_MODESWITCH_TARGET_INSTALL_TARGET) $(USB_MODESWITCH_HOOK_POST_INSTALL)
This page took 0.070681 seconds and 4 git commands to generate.