Bug #64405 [Com]: Use freetype-config for determining freetype2 dir(s)
| From: | vidurri at hotmail dot com | Date: | Fri, 20 Dec 2013 03:23:25 +0000 |
| Subject: | Bug #64405 [Com]: Use freetype-config for determining freetype2 dir(s) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183412@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64405&edit=1
ID: 64405
Comment by: vidurri at hotmail dot com
Reported by: olemarkus@php.net
Summary: Use freetype-config for determining freetype2 dir(s)
Status: Closed
Type: Bug
Package: GD related
PHP Version: 5.4.12
Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
Solution in bug #66328 by Rafael Rocha Vidaurri
SOLUTION:
Let's search for the file on both directories replacing (on PHP "configure" file):
if test -f "$i/include/freetype2/freetype/freetype.h"; then
For:
if test -f "$i/include/freetype2/freetype/freetype.h" || test -f
"$i/include/freetype2/freetype.h"; then
Bye ;)
Previous Comments:
------------------------------------------------------------------------
[2013-12-11 22:04:52] aharvey@php.net
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2013-12-11 21:19:10] pgnet dot dev+phpbugs at gmail dot com
referencing my duplicate #66259, pkg-config or freetype-config are flexible options. here, they
produce different results:
pkg-config --cflags --libs freetype2
-I/usr/include/freetype2 -lfreetype
freetype-config --cflags --libs
-I/usr/include/freetype2
-lfreetype -lz -lpng15
a quick workaround @ php config-time, changing both
perl -pi -e 's|(FREETYPE2_INC_DIR)=.*|$1=\$i/include|g' ./configure
perl -pi -e 's|freetype2/freetype/freetype.h|freetype2/freetype.h|g' ./configure
and
export CPPFLAGS="
pkg-config --cflags freetype2"
which 'fixes' missing incorrect path references in GD ext, allows config & build to
complete.
------------------------------------------------------------------------
[2013-12-11 21:07:27] aharvey@php.net
Related To: Bug #66198
------------------------------------------------------------------------
[2013-12-11 21:07:16] aharvey@php.net
Related To: Bug #66259
------------------------------------------------------------------------
[2013-03-11 12:45:29] olemarkus@php.net
Description:
------------
Currently PHP does not use pkg-config to determine the location of freetype2
header files. Instead it looks for freetype.h in a set of dirs. On e.g multilib
systems this causes ./configure to fail when using --with-freetype-dir
pkg-config --cflags freetype2
-I/usr/lib64/freetype2/include/freetype2 -I/usr/lib64/freetype2/include
And header files like:
/usr/lib64/freetype2/include/ft2build.h
/usr/lib64/freetype2/include/freetype2/freetype/freetype.h
Downstream bug: https://bugs.gentoo.org/show_bug.cgi?id=459598
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64405&edit=1