summaryrefslogtreecommitdiffstats
path: root/package/php/php.mk
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2014-10-05 19:38:57 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-10-26 22:31:00 +0100
commite29d47e5503b22b6e63ed68cf09431874708cda4 (patch)
tree6fab15402debc9f84008603b9ec41105730d26fb /package/php/php.mk
parentf187c5fd8943d223630c8dc358ccb308e69f2334 (diff)
downloadbuildroot-e29d47e5503b22b6e63ed68cf09431874708cda4.tar.gz
buildroot-e29d47e5503b22b6e63ed68cf09431874708cda4.zip
package/php: Add support for GD module
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/php/php.mk')
-rw-r--r--package/php/php.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/php/php.mk b/package/php/php.mk
index afb55b4307..c2840f3d10 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -212,6 +212,14 @@ ifeq ($(BR2_PACKAGE_PHP_EXT_SNMP),y)
PHP_DEPENDENCIES += netsnmp
endif
+ifeq ($(BR2_PACKAGE_PHP_EXT_GD),y)
+ PHP_CONF_OPTS += --with-gd --with-jpeg-dir=$(STAGING_DIR)/usr \
+ --with-png-dir=$(STAGING_DIR)/usr \
+ --with-zlib-dir=$(STAGING_DIR)/usr \
+ --with-freetype-dir=$(STAGING_DIR)/usr
+ PHP_DEPENDENCIES += jpeg libpng freetype
+endif
+
define PHP_EXTENSIONS_FIXUP
$(SED) "/prefix/ s:/usr:$(STAGING_DIR)/usr:" \
$(STAGING_DIR)/usr/bin/phpize
OpenPOWER on IntegriCloud