Ticket #37276: Portfile-opencv.diff

File Portfile-opencv.diff, 812 bytes (added by josephhowse@…, 12 years ago)

graphics/opencv/Portfile-opencv.diff

  • Portfile

    old new  
    154154    }
    155155}
    156156
     157variant openni_sensorkinect conflicts openni description {Enable support for OpenNI plus Kinect.} {
     158    depends_lib-append          port:openni-sensorkinect
     159    patchfiles-append           patch-cmake-OpenCVFindOpenNI.cmake.diff
     160    configure.args-delete       -DWITH_OPENNI=OFF
     161    configure.args-append       -DWITH_OPENNI=ON
     162
     163    post-patch {
     164         reinplace "s,@@PREFIX@@,${prefix},g" ${worksrcpath}/cmake/OpenCVFindOpenNI.cmake
     165    }
     166}
     167
    157168variant dc1394 description {Use libdc1394 for FireWire camera. Breaks compatibility with Apple iSight FireWire camera.} {
    158169    depends_lib-append          port:libdc1394
    159170    configure.args-delete       -DWITH_1394=OFF