Coin + SoQt

Mark Brethen mark.brethen at gmail.com
Wed Jun 25 16:48:19 PDT 2014


SoQt is dependent on Trolltech's Qt library. On Mac OS X, you have two options:

1. Use the native Qt/Mac
2. Use X11 and Qt/X11

You need to build both Coin and SoQt using this option. So I added the following to my SoQt Portfile:

pre-configure {

    if {[active_variants Coin aqua] && ![variant_isset aqua]} {
        ui_error "
	
****
**** In order to use X11 instead of Quartz/Aqua, you need to build both
**** Coin and SoQt using this option.
****
"
        error "Coin +aqua installed."
    }
}

platform darwin {

    configure.args-append   --enable-darwin-x11
    depends_lib-append      port:qt4-x11 \
                            port:Coin
	
	variant aqua description {Install with the X11 Window system.} { 
	    require_active_variants path:lib/pkgconfig/Coin.pc:Coin aqua
        configure.args-delete   --enable-darwin-x11
	    depends_lib-delete      port:qt4-x11
	    depends_lib-append      port:qt4-mac
    }
} 

Is this correct?


Mark






More information about the macports-dev mailing list