add freetype support for gd

This commit is contained in:
crazywhalecc
2023-03-18 21:40:07 +08:00
parent 9ce92e39d5
commit 3daafa0b0e
5 changed files with 64 additions and 2 deletions

View File

@@ -216,6 +216,11 @@ class Extension
'CURL_LIBS="' . $this->getLibFilesString() . '" ';
break;
case 'gd':
if ($this->builder->getLib('freetype')) {
$arg .= ' --with-freetype ' .
'FREETYPE2_CFLAGS=-I"' . BUILD_INCLUDE_PATH . '/freetype2" ' .
'FREETYPE2_LIBS="' . $this->getLibFilesString() . '" ';
}
$arg .= ' ' .
'PNG_CFLAGS=-I"' . BUILD_INCLUDE_PATH . '" ' .
'PNG_LIBS="' . $this->getLibFilesString() . '" ';