gd: fix build with freetype but without fontconfig
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 4 Dec 2012 20:47:19 +0000 (12:47 -0800)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 4 Dec 2012 20:47:19 +0000 (12:47 -0800)
Fixes http://autobuild.buildroot.net/results/3309617d2d5e14c0713dbaf9185815d79293e33b

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/gd/gd.mk

index 476976430a92b87bcd1ec83917d832e0783d51b4..972d8dda420de6d72792a7a248f4cdc901bea166 100644 (file)
@@ -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