From 7e7a8dc85e92171e93e14eb0323bc518ecada3cc Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 31 Jan 2011 20:02:36 +0100 Subject: libusb-compat: fixup libusb-config script similarly to other *-config scripts So programs using this don't end up looking for host includes / libraries. Signed-off-by: Peter Korsgaard --- package/libusb-compat/libusb-compat.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'package/libusb-compat/libusb-compat.mk') diff --git a/package/libusb-compat/libusb-compat.mk b/package/libusb-compat/libusb-compat.mk index 98271c7d1..6590e893b 100644 --- a/package/libusb-compat/libusb-compat.mk +++ b/package/libusb-compat/libusb-compat.mk @@ -11,4 +11,12 @@ LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config libusb LIBUSB_COMPAT_INSTALL_STAGING = YES LIBUSB_COMPAT_INSTALL_TARGET = YES +define LIBUSB_COMPAT_FIXUP_CONFIG + $(SED) 's%prefix=/usr%prefix=$(STAGING_DIR)/usr%' \ + -e 's%exec_prefix=/usr%exec_prefix=$(STAGING_DIR)/usr%' \ + $(STAGING_DIR)/usr/bin/libusb-config +endef + +LIBUSB_COMPAT_POST_INSTALL_STAGING_HOOKS+=LIBUSB_COMPAT_FIXUP_CONFIG + $(eval $(call AUTOTARGETS,package,libusb-compat)) -- cgit v1.2.3