#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@…): Updated patch (adds comment and the configure.args-append: {{{ Index: Portfile =================================================================== --- Portfile (revision 47261) +++ Portfile (working copy) @@ -25,40 +25,20 @@ 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] } { + # 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 } -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:14> MacPorts <http://www.macports.org/> Ports system for Mac OS