>>  Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
>>  "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
>>  provides a separate development package or SDK, be sure it has been
>>  installed.
> 
> So I used "port contents opencv" to discover that it installs the file 
> /opt/local/lib/cmake/OpenCVConfig.cmake. Therefore I modified your Portfile 
> and added "-DOpenCV_DIR=${prefix}/lib/cmake" to the configure.args. That 
> allowed it to get through the configure phase, but it failed during the build 
> phase with "error: #if with no expression".

perfect, thanks. Now it builds and it's committed to SVN

thanks a lot,
petr

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to