summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-12-04 20:47:19 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-12-04 20:47:19 (GMT)
commitd97187f8c813bf030b76ee9cf6d43d407d8e2966 (patch)
treebef2749d2b3409ba78b47cb8591578795f40400f
parent540c24838cc0d9a11f8bf0db31b54cfd8d5ee746 (diff)
downloadbuildroot-d97187f8c813bf030b76ee9cf6d43d407d8e2966.tar.gz
buildroot-d97187f8c813bf030b76ee9cf6d43d407d8e2966.tar.bz2
gd: fix build with freetype but without fontconfig
Fixes http://autobuild.buildroot.net/results/3309617d2d5e14c0713dbaf9185815d79293e33b Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/gd/gd.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/gd/gd.mk b/package/gd/gd.mk
index 4769764..972d8dd 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