From: Peter Korsgaard Date: Tue, 4 Dec 2012 20:47:19 +0000 (-0800) Subject: gd: fix build with freetype but without fontconfig X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d97187f8c813bf030b76ee9cf6d43d407d8e2966;p=buildroot.git gd: fix build with freetype but without fontconfig Fixes http://autobuild.buildroot.net/results/3309617d2d5e14c0713dbaf9185815d79293e33b Signed-off-by: Peter Korsgaard --- diff --git a/package/gd/gd.mk b/package/gd/gd.mk index 476976430a..972d8dda42 100644 --- a/package/gd/gd.mk +++ b/package/gd/gd.mk @@ -18,6 +18,10 @@ GD_CONF_OPT = --without-x --disable-rpath ifeq ($(BR2_PACKAGE_FONTCONFIG),y) GD_DEPENDENCIES += fontconfig GD_CONF_OPT += --with-fontconfig +endif + +ifeq ($(BR2_PACKAGE_FREETYPE),y) +GD_DEPENDENCIES += freetype GD_CONF_ENV += ac_cv_path_FREETYPE_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config endif