[MacPorts] #22628: cairo configure fails due to odd fontconfig pkgconfig .pc file

MacPorts noreply at macports.org
Fri Nov 20 19:19:26 PST 2009


#22628: cairo configure fails due to odd fontconfig pkgconfig .pc file
------------------------------+---------------------------------------------
 Reporter:  dbsgeo@…          |       Owner:  macports-tickets@…                   
     Type:  defect            |      Status:  new                                  
 Priority:  High              |   Milestone:                                       
Component:  ports             |     Version:  1.8.1                                
 Keywords:                    |        Port:  fontconfig,cairo                     
------------------------------+---------------------------------------------
 I'm on snow leopard, 10.6.2.

 The fontconfig.pc generated by the latest fontconfig +universal port has
 these lines:

 {{{
 #ifndef __LP64__
 Libs.private:  -lexpat -L/opt/local/lib -lfreetype -lz -liconv
 #else /* __LP64__ */
 Libs.private:  -lexpat -L/opt/local/lib -lfreetype -lz
 #endif /* __LP64__ */
 }}}

 such that when you ask for the libs you get an error response:

 {{{
 $ pkg-config --libs fontconfig
 Libs.private field occurs twice in
 '/opt/local/lib/pkgconfig/fontconfig.pc'
 }}}

 I think this is what is now breaking the cairo configure step:
 {{{
 checking for png... yes
 checking whether cairo's PNG functions feature could be enabled... yes
 checking for cairo's FreeType font backend feature...
 checking for FONTCONFIG... no
 no
 checking whether cairo's FreeType font backend feature could be enabled...
 no (requires fontconfig)
 configure: error:  FreeType font backend feature could not be enabled

 Warning: the following items did not execute (for cairo):
 org.macports.activate org.macports.configure org.macports.build
 org.macports.destroot org.macports.install
 Error: Status 1 encountered during processing.
 }}}

 As changing the .pc lines to:

 {{{
 Libs.private:  -lexpat -L/opt/local/lib -lfreetype -lz -liconv
 }}}

 ...allows cairo to compile.

-- 
Ticket URL: <http://trac.macports.org/ticket/22628>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list