mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
package: use <pkg>_CONFIG_SCRIPTS wherever possible
Use the <pkg>_CONFIG_SCRIPTS mechanism in all packages for which it does all what the package was doing. A few packages, like libxslt, are for now left out, since they need some additional fixup (for example a fixup of includedir). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
committed by
Peter Korsgaard
parent
580225af20
commit
a5ce857674
@@ -8,14 +8,7 @@ LIBUSB_COMPAT_SOURCE = libusb-compat-$(LIBUSB_COMPAT_VERSION).tar.bz2
|
||||
LIBUSB_COMPAT_SITE = http://downloads.sourceforge.net/project/libusb/libusb-compat-0.1/libusb-compat-$(LIBUSB_COMPAT_VERSION)
|
||||
LIBUSB_COMPAT_DEPENDENCIES = host-pkgconf libusb
|
||||
LIBUSB_COMPAT_INSTALL_STAGING = 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
|
||||
LIBUSB_COMPAT_CONFIG_SCRIPTS = libusb-config
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user