[MacPorts] #13517: gtkglext 1.2 configure: error -- build failure OSX 10.5

MacPorts noreply at macports.org
Mon Feb 23 11:03:30 PST 2009


#13517: gtkglext 1.2 configure: error -- build failure OSX 10.5
-----------------------------------------+----------------------------------
  Reporter:  michaelt@…                  |       Owner:  rowue@…           
      Type:  defect                      |      Status:  reopened          
  Priority:  Normal                      |   Milestone:  Port Bugs         
 Component:  ports                       |     Version:  1.7.0             
Resolution:                              |    Keywords:  gtkglext gwyddion 
      Port:  gtkglext                    |  
-----------------------------------------+----------------------------------

Comment(by jeremyhu@…):

 If there is a bug, that is just a hack rather than the solution.   You
 should be able to just have gtkglext and --with-gl regardless of what GL
 you are using.  Update gwyddion with this patch.  If there is still a
 problem, then it's a gtkglext bug (and should be fixed rather than hacking
 something together in a single dependent port).  I'll take a look at
 gtkglext now...:

 {{{
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 47218)
 +++ Portfile    (working copy)
 @@ -25,40 +25,16 @@

  depends_lib         port:gtk2 \
                      port:libxml2 \
 -                    port:fftw-3
 +                    port:fftw-3 \
 +                    port:gtkglext

 -configure.args      --disable-desktop-file-update --without-gl
 +configure.args      --disable-desktop-file-update

 -if {![variant_isset system_x11]} {
 -    configure.cflags-append     "-I${x11prefix}/include"
 -    configure.ldflags-append    "-L${x11prefix}/lib"
 +if { ![file exists ${prefix}/lib/pkgconfig/gl.pc] } {
 +       configure.cppflags-append   -I${x11prefix}/include
 +       configure.ldflags-append    -L${x11prefix}/lib
  }

 -if {[variant_isset system_x11]} {
 -    default_variants    +system_x11
 -}
 -
 -
 -# deactivation because of gtkglext problems
 -# platform darwin 9 {
 -#     if {[variant_isset system_x11]} {
 -#         set darwin_9_glpath
 /System/Library/Frameworks/OpenGL.framework/Versions/
 -#         configure.ldflags-append
 -Wl,-dylib_file,${darwin_9_glpath}/A/Libraries/libGL.dylib:\
 -#         ${darwin_9_glpath}/A/Libraries/libGL.dylib
 -#     }
 -# }
 -
 -platform darwin 8 {
 -    if {[variant_isset system_x11]} {
 -        depends_lib-append      port:gtkglext
 -        configure.args-delete  --without-gl
 -    }
 -}
 -
 -variant system_x11 description {Using system X11 libraries} {
 -    # dummy
 -}
 -
  post-activate {
          system "${prefix}/bin/update-mime-database ${prefix}/share/mime ;
 true"
  }
 }}}

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


More information about the macports-tickets mailing list