# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $ PortSystem 1.0 name OpenCV version 2.0.0 categories graphics science platforms darwin maintainers gmail.com:stante description Intel(R) Open Source Computer Vision Library long_description OpenCV is a library that is mainly aimed at real time \ computer vision. Some example areas would be \ Human-Computer Interaction (HCI), Object Identification, \ Segmentation and Recognition, Face Recognition, Gesture \ Recognition, Motion Tracking, Ego Motion, Motion \ Understanding, Structure From Motion (SFM), and Mobile \ Robotics. homepage http://www.intel.com/technology/computing/opencv/ master_sites sourceforge:opencvlibrary use_bzip2 yes checksums md5 ed27520514baacc5edad7b06ad24130e depends_lib port:gtk2 port:zlib port:jpeg \ port:libpng port:tiff port:ffmpeg configure.env CPATH="${prefix}/include" \ LIBRARY_PATH="${prefix}/lib" configure.cxxflags-append "-I${prefix}/include -L${prefix}/lib" # For some reason the OpenCV 2.0 highgui module forgets to link against libavutil.a by standard configure.ldflags-append -lavutil variant disable_openmp description {Disables OpenMP} { configure.args-append --without-openmp --disable-openmp } variant sl_64bit description {Work around to build for Snow Leopard in 64bit. Removes quicktime, replaces carbon with gtk. Changes processor target to Core2.} { configure.post_args --without-quicktime --without-carbon --with-gtk configure.cxxflags-append "-I${prefix}/include -L${prefix}/lib -march=nocona -mtune=generic" }