source: trunk/dports/python/py-bob-core/Portfile @ 148199

Last change on this file since 148199 was 148199, checked in by mps@…, 4 years ago

matio: bump to 1.5.6, rev bump dependents (#50675)

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 3.5 KB
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: Portfile 148199 2016-04-29 14:27:34Z mps@macports.org $
3
4PortSystem                   1.0
5PortGroup                    python 1.0
6PortGroup                    github 1.0
7PortGroup                    active_variants 1.1 
8PortGroup                    compiler_blacklist_versions 1.0
9
10name                         py-bob-core
11version                      2.1.0
12revision                     2
13license                      BSD
14homepage                     http://idiap.github.com/bob/
15
16categories-append            science math devel
17platforms                    darwin
18maintainers                  idiap.ch:andre.anjos\
19                             idiap.ch:laurent.el-shafey \
20                             idiap.ch:tiago.pereira
21
22
23description                  Python bindings for bob-core. Bob is a signal-processing and machine learning toolbox.
24
25long_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
31github.setup                 bioidiap bob.core 2.1.0 v
32
33
34python.versions              27 34
35python.default_version       27
36
37
38checksums                    rmd160  ec5320857149ad95c4e952c874c7f328efa52591 \
39                             sha256  5ded78287fe0e6165a0cf6628c73f8285e16d1e7f35d6033ab257b19c5e7ba31
40
41
42if {$subport ne $name} {
43
44    depends_build-append port:pkgconfig
45
46    depends_lib-append  \
47    port:blitz \
48    path:lib/libavcodec.dylib:ffmpeg \
49    port:matio \
50    port:cmake \
51    port:jpeg \
52    port:netpbm \
53    port:libpng \
54    port:tiff \
55    port:giflib \
56    port:hdf5 \
57    port:fftw-3 \
58    port:vlfeat \
59    port:libsvm \
60    port:boost \
61    port:py${python.version}-sphinx \
62    port:py${python.version}-setuptools \
63    port:py${python.version}-numpy \
64    port:py${python.version}-matplotlib \
65    port:py${python.version}-sqlalchemy \
66    port:py${python.version}-scipy \
67    port:py${python.version}-nose \
68    port:py${python.version}-pillow \
69    port:py${python.version}-bob-blitz \
70    port:py${python.version}-bob-extension
71
72
73          # blacklist older compilers that don't support -std=c++0x (10.6 and earlier)       
74       compiler.blacklist  *gcc* {clang < 300}
75
76    # fix for libstdc++ build failures with boost 1.59 and (indirect) inclusion of boost/thread/detail/move.hpp
77    # libstdc++ supports rvalue references but defining BOOST_NO_CXX11_RVALUE_REFERENCES disables the
78    # inclusion of <type_traits> which is not libstdc++ compatible
79
80    platform darwin {
81        if {${configure.cxx_stdlib} eq "libstdc++"} {
82            build.env-append \
83                CPPFLAGS=-DBOOST_NO_CXX11_RVALUE_REFERENCES
84            destroot.env-append \
85                CPPFLAGS=-DBOOST_NO_CXX11_RVALUE_REFERENCES
86        }
87    }
88
89    #WORKAROUND TO AVOID CONFLICTS WITH ANOTHER BOB PACKAGES (DELETING THE ROOT __INIT_FILES)
90
91    post-destroot {
92        set filename ${destroot}${python.pkgd}/bob/__init__.py
93        puts $filename
94        if {[file exists $filename] == 1} {     
95          file delete $filename
96          file delete ${destroot}${python.pkgd}/bob/__init__.pyc
97        }
98        set filename ${destroot}${python.pkgd}/bob/__pycache__/__init__.cpython-34.pyc
99        if {[file exists $filename] == 1} {
100           file delete $filename
101        }
102    }
103
104}
105
106
Note: See TracBrowser for help on using the repository browser.