mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03: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
@@ -10,6 +10,7 @@ LIBXML2_INSTALL_STAGING = YES
|
||||
LIBXML2_AUTORECONF = YES
|
||||
LIBXML2_LICENSE = MIT
|
||||
LIBXML2_LICENSE_FILES = COPYING
|
||||
LIBXML2_CONFIG_SCRIPTS = xml2-config
|
||||
|
||||
ifneq ($(BR2_LARGEFILE),y)
|
||||
LIBXML2_CONF_ENV = CC="$(TARGET_CC) $(TARGET_CFLAGS) -DNO_LARGEFILE_SOURCE"
|
||||
@@ -17,13 +18,6 @@ endif
|
||||
|
||||
LIBXML2_CONF_OPT = --with-gnu-ld --without-python --without-debug
|
||||
|
||||
define LIBXML2_STAGING_LIBXML2_CONFIG_FIXUP
|
||||
$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
|
||||
$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
|
||||
endef
|
||||
|
||||
LIBXML2_POST_INSTALL_STAGING_HOOKS += LIBXML2_STAGING_LIBXML2_CONFIG_FIXUP
|
||||
|
||||
HOST_LIBXML2_DEPENDENCIES = host-pkgconf
|
||||
|
||||
# mesa3d uses functions that are only available with debug
|
||||
@@ -40,15 +34,6 @@ else
|
||||
HOST_LIBXML2_CONF_OPT += --without-python
|
||||
endif
|
||||
|
||||
|
||||
define LIBXML2_REMOVE_CONFIG_SCRIPTS
|
||||
$(RM) -f $(TARGET_DIR)/usr/bin/xml2-config
|
||||
endef
|
||||
|
||||
ifneq ($(BR2_HAVE_DEVFILES),y)
|
||||
LIBXML2_POST_INSTALL_TARGET_HOOKS += LIBXML2_REMOVE_CONFIG_SCRIPTS
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user