#50709: port:opencv+qt4 uses Qt5 if both Qt4 and Qt5 are installed --------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: opencv | --------------------------+-------------------------------- Comment (by rjvbertin@…): Building +qt4 when Qt5 is also installed turns out not to require many modifications: {{{ --- /opt/local/var/macports/sources/default-ports/graphics/opencv/Portfile 2016-02-24 16:35:31.000000000 +0100 +++ /opt/local/site-ports/graphics/opencv/Portfile 2016-02-24 19:47:41.000000000 +0100 @@ -208,13 +208,13 @@ variant qt4 conflicts qt5 description {Build with Qt4 Backend support.} { PortGroup qt4 1.0 configure.args-replace -DWITH_QT=OFF \ - -DWITH_QT=ON + -DWITH_QT=4 } variant qt5 conflicts qt4 description {Build with Qt5 Backend support.} { PortGroup qt5 1.0 configure.args-replace -DWITH_QT=OFF \ - -DWITH_QT=ON + -DWITH_QT=5 } variant java description {Add Java bindings.} { }}} -- Ticket URL: <https://trac.macports.org/ticket/50709#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X