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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | |
---|
7 | PortGroup github 1.0 |
---|
8 | github.setup idiap bob 1.0.6 v |
---|
9 | |
---|
10 | name bob |
---|
11 | version 1.0.6 |
---|
12 | set soversion 1.0 |
---|
13 | revision 1 |
---|
14 | categories science math devel |
---|
15 | platforms darwin |
---|
16 | maintainers idiap.ch:andre.anjos \ |
---|
17 | idiap.ch:laurent.el-shafey \ |
---|
18 | idiap.ch:sebastien.marcel \ |
---|
19 | idiap.ch:manuel.guenther \ |
---|
20 | idiap.ch:ivana.chingovska \ |
---|
21 | idiap.ch:elie.khoury |
---|
22 | |
---|
23 | description Bob is a signal-processing and machine learning toolbox |
---|
24 | |
---|
25 | long_description Bob is a signal-processing and machine learning toolbox \ |
---|
26 | developed at the Idiap Research Institute, in Martigny, \ |
---|
27 | Switzerland. The toolbox is written in a mix of Python \ |
---|
28 | and C++ and is designed to be both efficient and to \ |
---|
29 | reduce development time. |
---|
30 | |
---|
31 | license GPL-3 |
---|
32 | |
---|
33 | checksums rmd160 61e00367cfa0c1997ce9a23c99ae8b7a0bcf5c1a \ |
---|
34 | sha256 6b54cfb2de0f60ff5f0f98ff72a84d79a8a4d66ad1d5e2ec64ad7c0311ed57bf |
---|
35 | |
---|
36 | use_parallel_build no |
---|
37 | |
---|
38 | depends_lib port:blitz \ |
---|
39 | port:ffmpeg \ |
---|
40 | port:matio \ |
---|
41 | port:imagemagick \ |
---|
42 | port:hdf5-18 \ |
---|
43 | port:boost \ |
---|
44 | port:fftw-3 \ |
---|
45 | port:vlfeat \ |
---|
46 | port:libsvm |
---|
47 | |
---|
48 | configure.args -DCMAKE_BUILD_TYPE=Release -DBOB_VERSION=${version} -DBOB_SOVERSION=${soversion} |
---|
49 | |
---|
50 | compiler.blacklist clang |
---|
51 | |
---|
52 | |
---|
53 | universal_variant no |
---|
54 | default_variants +qt4 +opencv |
---|
55 | |
---|
56 | if {![variant_isset python26]} { |
---|
57 | default_variants-append +python27 |
---|
58 | } |
---|
59 | |
---|
60 | |
---|
61 | variant python26 conflicts python27 description "Builds for python 2.6." { |
---|
62 | depends_lib-append port:py26-numpy \ |
---|
63 | port:py26-matplotlib \ |
---|
64 | port:py26-sqlalchemy \ |
---|
65 | port:py26-argparse \ |
---|
66 | port:py26-scipy |
---|
67 | } |
---|
68 | |
---|
69 | variant python27 conflicts python26 description "Builds for python 2.7." { |
---|
70 | depends_lib-append port:py27-numpy \ |
---|
71 | port:py27-matplotlib \ |
---|
72 | port:py27-sqlalchemy \ |
---|
73 | port:py27-scipy |
---|
74 | } |
---|
75 | |
---|
76 | variant qt4 description "Compile Qt4 extensions." { |
---|
77 | depends_lib-append port:qt4-mac |
---|
78 | } |
---|
79 | |
---|
80 | variant opencv description "Compile OpenCV extensions." { |
---|
81 | depends_lib-append port:opencv |
---|
82 | } |
---|
83 | |
---|
84 | variant doc description "Builds documentation." { |
---|
85 | depends_build-append port:dvipng \ |
---|
86 | port:doxygen \ |
---|
87 | port:texlive-latex-extra \ |
---|
88 | port:texlive-fonts-recommended |
---|
89 | destroot.target-append sphinx-latex install-sphinx install-doxygen |
---|
90 | |
---|
91 | if {[variant_isset python26]} { |
---|
92 | depends_build-append port:py26-sphinx |
---|
93 | } |
---|
94 | if {[variant_isset python27]} { |
---|
95 | depends_build-append port:py27-sphinx |
---|
96 | } |
---|
97 | test.target-append sphinx-doctest |
---|
98 | } |
---|
99 | |
---|
100 | pre-configure { |
---|
101 | if {[variant_isset python26]} { |
---|
102 | configure.args-append -DWITH_PYTHON=${prefix}/bin/python2.6 |
---|
103 | } elseif {[variant_isset python27]} { |
---|
104 | configure.args-append -DWITH_PYTHON=${prefix}/bin/python2.7 |
---|
105 | } else { |
---|
106 | ui_error "You must choose a python variant. Tip: use the same variant used for building the boost port (use `port installed boost` to find it out)" |
---|
107 | } |
---|
108 | } |
---|
109 | |
---|
110 | post-destroot { |
---|
111 | if {[variant_isset python26]} { |
---|
112 | set pypath ${prefix}/lib/python2.6/site-packages |
---|
113 | set pycompile ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages |
---|
114 | xinstall -d ${destroot}/${pycompile} |
---|
115 | system "${prefix}/bin/python2.6 -m compileall ${destroot}/${pypath}/bob" |
---|
116 | move ${destroot}/${pypath}/bob ${destroot}/${pycompile}/bob |
---|
117 | move ${destroot}/${pypath}/bob-${version}-py2.6.egg-info ${destroot}/${pycompile}/ |
---|
118 | } elseif {[variant_isset python27]} { |
---|
119 | set pypath ${prefix}/lib/python2.7/site-packages |
---|
120 | set pycompile ${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages |
---|
121 | xinstall -d ${destroot}/${pycompile} |
---|
122 | system "${prefix}/bin/python2.7 -m compileall ${destroot}/${pypath}/bob" |
---|
123 | move ${destroot}/${pypath}/bob ${destroot}/${pycompile}/bob |
---|
124 | move ${destroot}/${pypath}/bob-${version}-py2.7.egg-info ${destroot}/${pycompile}/ |
---|
125 | } else { |
---|
126 | ui_error "You must choose a python variant. Tip: use the same variant used for building the boost port (use `port installed boost` to find it out)" |
---|
127 | } |
---|
128 | } |
---|