mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
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>
This commit is contained in:
parent
f187c5fd89
commit
e29d47e550
@ -194,6 +194,14 @@ config BR2_PACKAGE_PHP_EXT_EXIF
|
|||||||
help
|
help
|
||||||
EXIF support
|
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"
|
comment "Mathematical extensions"
|
||||||
|
|
||||||
config BR2_PACKAGE_PHP_EXT_BCMATH
|
config BR2_PACKAGE_PHP_EXT_BCMATH
|
||||||
|
@ -212,6 +212,14 @@ ifeq ($(BR2_PACKAGE_PHP_EXT_SNMP),y)
|
|||||||
PHP_DEPENDENCIES += netsnmp
|
PHP_DEPENDENCIES += netsnmp
|
||||||
endif
|
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
|
define PHP_EXTENSIONS_FIXUP
|
||||||
$(SED) "/prefix/ s:/usr:$(STAGING_DIR)/usr:" \
|
$(SED) "/prefix/ s:/usr:$(STAGING_DIR)/usr:" \
|
||||||
$(STAGING_DIR)/usr/bin/phpize
|
$(STAGING_DIR)/usr/bin/phpize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user