kumquat-buildroot/package/usbutils/usbutils.mk
Gustavo Zacarias dfb503937d usbutils: fix recursive LIBUSB Kconfig issue and bump to 0.87
Closes #1699

[Peter: Use BR2_KERNEL_MIRROR]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-05-06 23:03:18 +02:00

32 lines
836 B
Makefile

#############################################################
#
# usbutils
#
#############################################################
USBUTILS_VERSION = 0.87
USBUTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/usb/usbutils
USBUTILS_DEPENDENCIES = host-pkg-config libusb-compat
ifeq ($(BR2_PACKAGE_USBUTILS_ZLIB),y)
USBUTILS_DEPENDENCIES += zlib
else
USBUTILS_CONF_OPT = --disable-zlib
endif
$(eval $(call AUTOTARGETS,package,usbutils))
$(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)
rm -f $(TARGET_DIR)/usr/share/usb.ids
else
rm -f $(TARGET_DIR)/usr/share/usb.ids.gz
endif
ifneq ($(BR2_HAVE_DEVFILES),y)
rm -f $(TARGET_DIR)/usr/bin/libusb-config
endif
touch $@