mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
package/freetype: drop libpng workaround
libpng workaround which has been added with commitf7313cadf2is not needed since version 2.5.3 and https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=00c79ed9680a0d7a367c6914adc7485391299542 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit005a3437a5) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
bac46d4cec
commit
73ce759aa4
@@ -37,9 +37,7 @@ endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
||||
FREETYPE_DEPENDENCIES += libpng
|
||||
FREETYPE_CONF_OPTS += LIBPNG_CFLAGS="`$(STAGING_DIR)/usr/bin/libpng-config --cflags`" \
|
||||
LIBPNG_LDFLAGS="`$(STAGING_DIR)/usr/bin/libpng-config --ldflags`"
|
||||
FREETYPE_LIBPNG_LIBS = "`$(STAGING_DIR)/usr/bin/libpng-config --libs`"
|
||||
FREETYPE_CONF_OPTS += --with-png
|
||||
else
|
||||
FREETYPE_CONF_OPTS += --without-png
|
||||
endif
|
||||
@@ -52,14 +50,5 @@ define FREETYPE_FIX_CONFIG_FILE
|
||||
endef
|
||||
FREETYPE_POST_INSTALL_STAGING_HOOKS += FREETYPE_FIX_CONFIG_FILE
|
||||
|
||||
# libpng isn't included in freetype-config & freetype2.pc :-/
|
||||
define FREETYPE_FIX_CONFIG_FILE_LIBS
|
||||
$(SED) "s,^Libs.private:,& $(FREETYPE_LIBPNG_LIBS)," \
|
||||
$(STAGING_DIR)/usr/lib/pkgconfig/freetype2.pc
|
||||
$(SED) "s,-lfreetype,& $(FREETYPE_LIBPNG_LIBS)," \
|
||||
$(STAGING_DIR)/usr/bin/freetype-config
|
||||
endef
|
||||
FREETYPE_POST_INSTALL_STAGING_HOOKS += FREETYPE_FIX_CONFIG_FILE_LIBS
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user