From e29d47e5503b22b6e63ed68cf09431874708cda4 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 5 Oct 2014 19:38:57 +0200 Subject: [PATCH] package/php: Add support for GD module Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/php/Config.ext | 8 ++++++++ package/php/php.mk | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/package/php/Config.ext b/package/php/Config.ext index 6880cd76e4..f745cc9e3b 100644 --- a/package/php/Config.ext +++ b/package/php/Config.ext @@ -194,6 +194,14 @@ config BR2_PACKAGE_PHP_EXT_EXIF help EXIF support +config BR2_PACKAGE_PHP_EXT_GD + bool "GD" + select BR2_PACKAGE_FREETYPE + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBPNG + help + GD support + comment "Mathematical extensions" config BR2_PACKAGE_PHP_EXT_BCMATH 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 -- 2.30.2