freetype: add libpng to freetype-config and freetype2.pc
PATCH 1/1 freetype: add libpng to freetype-config and freetype2.pc
Add libpng libraries to freetype-config and freetype2.pc when they're needed to avoid build breakage for other packages.
Patch in a different form is already upstream.
Fixing configure & friends is not so good since autoreconf busts things up because of the odd way things are done (upstream fixed too it seems).
--- package/freetype/freetype.mk | 10 ++++++++++ 1 file changed, 10 insertions(+)
package/freetype/freetype.mk +10 -0
@@ -37,6 +37,7 @@ ifeq ($(BR2_PACKAGE_LIBPNG),y) FREETYPE_DEPENDENCIES += libpng FREETYPE_CONF_OPT += 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`" else FREETYPE_CONF_OPT += --without-png endif
@@ -49,5 +50,14 @@ 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))
Signature · 1 line
1.8.3.2
PATCH 1/1 freetype: add libpng to freetype-config and freetype2.pc
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Add libpng libraries to freetype-config and freetype2.pc when they're needed to avoid build breakage for other packages.
Patch in a different form is already upstream.
Fixing configure & friends is not so good since autoreconf busts things up because of the odd way things are done (upstream fixed too it seems).
Signed-off-by Gustavo Zacarias <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard