[MacPorts] #41746: mplayer-devel +osx does not detect freetype when /usr/X11 is present

MacPorts noreply at macports.org
Thu Jun 5 08:39:50 PDT 2014


#41746: mplayer-devel +osx does not detect freetype when /usr/X11 is present
--------------------------------+------------------------
  Reporter:  hugo.at.ribeiro@…  |      Owner:  jeremyhu@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.2.1
Resolution:                     |   Keywords:
      Port:  mplayer-devel      |
--------------------------------+------------------------

Comment (by kgabor79@…):

 On Lion, I think the problem is that both
 /opt/local/include/freetype2/ft2build.h and /usr/X11/include/ft2build.h
 exist and mplayer's configure script finds the latter (/usr/X11 is earlier
 in the path). The configure script either fails and set freetype to "no"
 or if you specify its location, then the build fails for the same reason.
 From a standalone mplayer build:

 {{{
 ./configure --enable-menu --with-freetype-config=/opt/local/bin/freetype-
 config --enable-freetype

 Checking for bitmap font support ... yes
 Checking for freetype >= 2.0.9 ... yes
 Checking for fontconfig ... yes

 make

 cc -MMD -MP -D_ISOC99_SOURCE -I. -Iffmpeg -O2 -march=corei7-avx -pipe
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
 -Ilibdvdread4 -mdynamic-no-pic  -fpie -DPIC  -I/usr/X11/include
 -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE
 -I/opt/local/include  -I/opt/local/include/freetype2
 -I/opt/local/include/fribidi -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include
 -I/opt/local/include/opus  -I/opt/local/include/dirac
 -I/opt/local/include/schroedinger-1.0 -I/opt/local/include/orc-0.4  -c -o
 command.o command.c
 In file included from command.c:45:
 In file included from ./sub/font_load.h:25:
 /usr/X11/include/ft2build.h:56:10: fatal error:
 'freetype/config/ftheader.h' file not found
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/41746#comment:13>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list