mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
imlib2: handle imlib2-config script
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
committed by
Peter Korsgaard
parent
3a91b976b7
commit
24b950f76f
@@ -12,6 +12,7 @@ IMLIB2_LICENSE_FILES = COPYING
|
|||||||
IMLIB2_INSTALL_STAGING = YES
|
IMLIB2_INSTALL_STAGING = YES
|
||||||
IMLIB2_DEPENDENCIES = host-pkgconf freetype
|
IMLIB2_DEPENDENCIES = host-pkgconf freetype
|
||||||
IMLIB2_CONF_OPT = --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config
|
IMLIB2_CONF_OPT = --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config
|
||||||
|
IMLIB2_CONFIG_SCRIPTS = imlib2-config
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
|
ifeq ($(BR2_PACKAGE_IMLIB2_X),y)
|
||||||
IMLIB2_CONF_OPT += --with-x
|
IMLIB2_CONF_OPT += --with-x
|
||||||
@@ -57,10 +58,7 @@ endif
|
|||||||
|
|
||||||
# drop -L<dir> from linker flags
|
# drop -L<dir> from linker flags
|
||||||
define IMLIB2_FIXUP_IMLIB2_CONFIG
|
define IMLIB2_FIXUP_IMLIB2_CONFIG
|
||||||
$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
|
$(SED) 's/-L[^ ]*//g' $(STAGING_DIR)/usr/bin/imlib2-config
|
||||||
-e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
|
|
||||||
-e 's/-L[^ ]*//g' \
|
|
||||||
$(STAGING_DIR)/usr/bin/imlib2-config
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
IMLIB2_POST_INSTALL_STAGING_HOOKS += IMLIB2_FIXUP_IMLIB2_CONFIG
|
IMLIB2_POST_INSTALL_STAGING_HOOKS += IMLIB2_FIXUP_IMLIB2_CONFIG
|
||||||
|
|||||||
Reference in New Issue
Block a user