Ticket #50709: opencv.diff

File opencv.diff, 1.3 KB (added by RJVB (René Bertin), 9 years ago)
  • graphics/opencv/Portfile

    old new  
    208208variant qt4 conflicts qt5 description {Build with Qt4 Backend support.} {
    209209    PortGroup               qt4 1.0
    210210    configure.args-replace  -DWITH_QT=OFF \
    211                             -DWITH_QT=ON
     211                            -DWITH_QT=4
    212212}
    213213
    214214variant qt5 conflicts qt4 description {Build with Qt5 Backend support.} {
    215215    PortGroup               qt5 1.0
    216216    configure.args-replace  -DWITH_QT=OFF \
    217                             -DWITH_QT=ON
     217                            -DWITH_QT=5
    218218}
    219219
    220220variant java description {Add Java bindings.} {
     
    312312    reinplace {/Libs: /s:\.dylib::g} ${destroot}${prefix}/lib/pkgconfig/opencv.pc
    313313    reinplace {s|Libs: |Libs: -L\${exec_prefix}/lib |g} ${destroot}${prefix}/lib/pkgconfig/opencv.pc
    314314    reinplace {s:-l-framework|-framework::g} ${destroot}${prefix}/lib/pkgconfig/opencv.pc
     315    if {[variant_isset qt4]} {
     316        reinplace "s|-lAGL|-framework AGL|g" ${destroot}${prefix}/lib/pkgconfig/opencv.pc
     317        reinplace "s|-lOpenGL|-framework OpenGL|g" ${destroot}${prefix}/lib/pkgconfig/opencv.pc
     318    }
    315319}
    316320
    317321livecheck.type      sourceforge