Package: opencv-shlibs Version: 2.3.1 Revision: 4 Description: Open Source Computer Vision Library License: BSD Maintainer: Hanspeter Niederstrasser Depends: << bzip2-shlibs, libjasper.1-shlibs, libjpeg8-shlibs, libpng15-shlibs, libtiff-shlibs, numpy-py27, python27-shlibs << BuildDepends: << bzip2-dev, cmake (>= 2.6), eigen2, fink (>= 0.28), libjasper.1, libjpeg8, libpng15, libtiff, pkgconfig (>= 0.23), python27 << Source: mirror:sourceforge:opencvlibrary/opencv-unix/%v/OpenCV-%va.tar.bz2 Source-MD5: 82e4b6bfa349777233eea09b075e931e SourceDirectory: OpenCV-%v PatchFile: %n.patch PatchFile-MD5: 0a129a42ae2401fcaf21d2969345fbd8 PatchScript: << patch -p1 < %{PatchFile} ### The python module should be a dlopen bundle, not a dylib perl -pi -e 's,SHARED src2/cv2.cpp,MODULE src2/cv2.cpp,g' modules/python/CMakeLists.txt ### give a proper install_name to the libraries ### fixed: https://code.ros.org/trac/opencv/changeset/3298 ### unfixed later: https://code.ros.org/trac/opencv/changeset/5262 perl -pi -e 's,INSTALL_NAME_DIR lib,INSTALL_NAME_DIR \"\$\{CMAKE_INSTALL_PREFIX\}\/lib\",g' OpenCVModule.cmake modules/gpu/CMakeLists.txt modules/highgui/CMakeLists.txt ### On case sensitive systems, some things get put into share/OpenCV and ### others into share/opencv perl -pi -e 's|share/opencv|share/OpenCV|g' modules/python/test/test.py samples/{c,cpp,gpu,gpu/performance}/CMakeLists.txt << GCC: 4.0 CompileScript: << #!/bin/sh -ev mkdir -p finkbuild cd finkbuild CC=gcc-4.2 CXX=g++-4.2 cmake \ -DCMAKE_INSTALL_PREFIX=%p \ -DCMAKE_BUILD_TYPE=RELEASE \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DBUILD_EXAMPLES=ON \ -DINSTALL_C_EXAMPLES=ON \ -DBUILD_NEW_PYTHON_SUPPORT=ON \ -DINSTALL_PYTHON_EXAMPLES=ON \ -DPYTHON_EXECUTABLE=%p/bin/python2.7 \ -DPYTHON_LIBRARY=%p/lib/python2.7/config/libpython2.7.dylib \ -DPYTHON_INCLUDE_DIR=%p/include/python2.7 \ -DPYTHON_PACKAGES_PATH=%p/lib/python2.7/site-packages \ -DCMAKE_INSTALL_NAME_DIR=%p/lib/python2.7/site-packages \ -DWITH_EIGEN=ON \ -DEIGEN_INCLUDE_PATH=%p/include/eigen2 \ -DWITH_CUDA=OFF \ -DWITH_1394=OFF \ -DWITH_FFMPEG=OFF \ -DWITH_OPENEXR=OFF \ -DWITH_QT=OFF \ -DBUILD_DOCS=OFF \ .. ### cmake sets -install_name root to %b, so have to change it to %p #export OPENCVLIBS="calib3d contrib core features2d flann gpu highgui imgproc legacy ml objdetect ts video" #for OCVLIB in $OPENCVLIBS; do # perl -pi -e 's,-install_name %b/finkbuild/lib,-install_name %p/lib,g' modules/${OCVLIB}/CMakeFiles/opencv_${OCVLIB}.dir/link.txt #done make << InstallScript: << #!/bin/sh -ev cd finkbuild make -j1 install DESTDIR=%d ### even worse, cmake then blanks the prefix for the libraries during install #export OPENCVLIBS="calib3d contrib core features2d flann gpu highgui imgproc legacy ml objdetect ts video" #for OCVLIB in $OPENCVLIBS; do # install_name_tool -id %p/lib/libopencv_${OCVLIB}.2.3.dylib %i/lib/libopencv_${OCVLIB}.2.3.dylib #done << Shlibs: << %p/lib/libopencv_calib3d.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_contrib.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_core.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_features2d.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_flann.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_gpu.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_highgui.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_imgproc.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_legacy.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_ml.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_objdetect.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_ts.2.3.dylib 2.3.0 %n (>= 2.3.1-1) %p/lib/libopencv_video.2.3.dylib 2.3.0 %n (>= 2.3.1-1) << DocFiles: README Splitoff: << Package: opencv Depends: << opencv-shlibs (= %v-%r) << Description: Open Source Computer Vision executables Replaces: opencv-shlibs (<= 2.3.1-3) DocFiles: README Files: << bin lib/python2.7/site-packages/{cv.py,cv2.so} << << SplitOff2: << Package: opencv-dev Depends: << opencv-shlibs (= %v-%r) << Conflicts: opencv-dev, opencv2.4-dev, opencv2.5-dev Replaces: opencv-dev, opencv2.4-dev, opencv2.5-dev BuildDependsOnly: true Description: Development files for opencv DocFiles: README Files: << include lib/libopencv_{calib3d,contrib,core,features2d,flann,gpu,highgui,imgproc,legacy,ml,objdetect,ts,video}.dylib lib/pkgconfig share/OpenCV << << Homepage: http://opencv.willowgarage.com/wiki/ DescDetail: << OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision. OpenCV has C++, C, Python and soon Java interfaces running on Windows, Linux, Android and Mac. The library has >2500 optimized algorithms (see figure below). It is used around the world, has >2.5M downloads and >40K people in the user group. Uses range from interactive art, to mine inspection, stitching maps on the web on through advanced robotics. << DescPort: << CMAKE_INSTALL_NAME_DIR only gets applied to the python bindings. It has no effect on the main dylib files, so we don't use it. Explicitly turn off FFmpeg support. Otherwise end up with circular dependencies. Explicitly turn off OpenEXR support until version 1.6.1 or higher. Explicitly turn off rebuilding docs since it requires TexLive. Clang fix: https://code.ros.org/trac/opencv/changeset/6881 <<