Ticket #24503: Portfile

File Portfile, 2.0 KB (added by stromnov (Andrey Stromnov), 14 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7name                opencv
8version             2.1.0
9revision            0
10
11categories          graphics science
12platforms           darwin
13maintainers         gmail.com:stante openmaintainer
14
15description         Intel(R) Open Source Computer Vision Library
16
17long_description    OpenCV is a library that is mainly aimed at real time \
18                    computer vision. Some example areas would be \
19                    Human-Computer Interaction (HCI), Object Identification, \
20                    Segmentation and Recognition, Face Recognition, Gesture \
21                    Recognition, Motion Tracking, Ego Motion, Motion \
22                    Understanding, Structure From Motion (SFM), and Mobile \
23                    Robotics.
24
25homepage            http://opencv.willowgarage.com/wiki/
26master_sites        sourceforge:opencvlibrary
27use_bzip2           yes
28distname            OpenCV-${version}
29
30checksums           md5     1d71584fb4e04214c0085108f95e24c8 \
31                    sha1    8e2d6b653296364ab2ca0fa5a5e6b0edfca114a7 \
32                    rmd160  e31cdbd30e7925e3725f5957616ffc59c58db247
33
34depends_build-append \
35                    port:pkgconfig
36
37depends_lib-append \
38                    port:python26 \
39                    port:ffmpeg
40
41patchfiles          patch-CMakeLists.txt.diff \
42                    patch-interfaces_python_CMakeLists.txt.diff
43
44post-patch {
45        reinplace "s|@@PYTHON_PKGD@@|${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages|g" ${worksrcpath}/CMakeLists.txt
46        reinplace "s|@@FRAMEWORKS_DIR@@|${frameworks_dir}|g" ${worksrcpath}/interfaces/python/CMakeLists.txt
47}
48
49livecheck.type      regex
50livecheck.url       http://sourceforge.net/projects/opencvlibrary/files/
51livecheck.regex     "OpenCV-(\\d+(?:\\.\\d+)*)${extract.suffix}/download"