#34724: pygtk fails when cairo built with +no_x11 -------------------------------+-------------------------------------------- Reporter: dave@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: -------------------------------+-------------------------------------------- Comment(by dave@…): I believe I fixed it by adding this to the py27-cairo portfile: {{{ variant quartz conflicts x11 { configure.cflags -UCAIRO_HAS_XLIB_SURFACE } variant x11 conflicts quartz {} if {![variant_isset x11] && ![variant_isset quartz]} { default_variants +x11 } }}} The second stanza I took from other Portfiles, which is to say that I'm inexpert at this, and the change should be vetted by someone who knows what they're doing. For what it's worth, I think this change applies to all of the py*-cairo portfiles, and I found quite a few bugs around the tracker that seemed related to this one so if this fix is good you might be able to fix a lot of other things too. -- Ticket URL: <https://trac.macports.org/ticket/34724#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS