[MacPorts] #17558: connection errors when macports libs are used with Tiger X11 headers

MacPorts noreply at macports.org
Tue Jan 6 13:24:31 PST 2009


#17558: connection errors when macports libs are used with Tiger X11 headers
----------------------------------+-----------------------------------------
  Reporter:  vinc17@…             |       Owner:  jeremyhu@…           
      Type:  defect               |      Status:  reopened             
  Priority:  High                 |   Milestone:  Port Bugs            
 Component:  ports                |     Version:  1.6.0                
Resolution:                       |    Keywords:  crash                
      Port:  xorg                 |  
----------------------------------+-----------------------------------------
Changes (by jeremyhu@…):

 * cc: david@… (added)


Comment:

 David, can you please let me know if that works for you?  I think this
 should work well:

 {{{
 # This block helps us link correctly and setup our pc files correctly when
 we are
 # +system_x11 and x11prefix is somewhere non-standard
 if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] && ![file exists
 ${x11prefix}/lib/pkgconfig/x11.pc] } {
     # AC_X_PATH blindly asks xmkmf where X11 is, and it always uses
 /usr/X11R6.
     # These next three lines should cause AC_X_PATH to let us setup our
 CPPFLAGS
     # and LDFLAGS without interference
     configure.args-append --x-include=${prefix}/include
 --x-lib=${prefix}/lib
     configure.cppflags-append -I${x11prefix}/include
     configure.ldflags-append  -L${x11prefix}/lib

     # And this will similarly get ports that use pkgconfig to find our
 pkgconfig-less libX11
     post-destroot {
         foreach pc [glob ${destroot}${prefix}/lib/pkgconfig/*.pc] {
             reinplace "s:-lX11:-L${prefix}/lib -L${x11prefix}/lib -lX11:g"
 ${pc}
         }
     }
 }
 }}}

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


More information about the macports-tickets mailing list