2005-12-13 06:00:58 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# usbutils
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2009-11-30 16:58:49 +01:00
|
|
|
USBUTILS_VERSION = 0.86
|
|
|
|
USBUTILS_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/linux-usb/
|
2009-10-27 23:16:44 +01:00
|
|
|
USBUTILS_DEPENDENCIES = host-pkg-config
|
2005-12-13 06:00:58 +01:00
|
|
|
|
2009-11-30 16:58:49 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_USBUTILS_ZLIB),y)
|
|
|
|
USBUTILS_DEPENDENCIES += zlib
|
|
|
|
else
|
|
|
|
USBUTILS_CONF_OPT = --disable-zlib
|
|
|
|
endif
|
2005-12-13 06:00:58 +01:00
|
|
|
|
2009-11-30 16:58:49 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,usbutils))
|
2005-12-13 06:00:58 +01:00
|
|
|
|
2009-11-30 16:58:49 +01:00
|
|
|
$(USBUTILS_HOOK_POST_INSTALL):
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/usb-devices
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/update-usbids.sh
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/pkgconfig/usbutils.pc
|
|
|
|
ifeq ($(BR2_PACKAGE_USBUTILS_ZLIB),y)
|
2007-05-07 05:59:35 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/share/usb.ids
|
2009-11-30 16:58:49 +01:00
|
|
|
else
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/usb.ids.gz
|
2005-12-13 06:00:58 +01:00
|
|
|
endif
|
2009-11-30 16:58:49 +01:00
|
|
|
touch $@
|