source: trunk/dports/gis/orfeotoolbox/Portfile @ 121215

Last change on this file since 121215 was 118993, checked in by stromnov@…, 6 years ago

orfeotoolbox: use conflicts_build group

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.4 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 118993 2014-04-14 20:14:02Z stromnov@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           qt4 1.0
7PortGroup           conflicts_build 1.0
8
9name                orfeotoolbox
10version             4.0.0
11revision            0
12categories          gis graphics
13platforms           darwin
14license             CeCILL
15
16maintainers         gmail.com:julien.malik stromnov openmaintainer
17
18description         OrfeoToolbox - Free library of image processing algorithms
19
20long_description    ORFEO Toolbox (OTB) is distributed as an open source library of image \
21                    processing algorithms. OTB is based on the medical image processing library \
22                    ITK and offers particular functionalities for remote sensing image processing \
23                    in general and for high spatial resolution images in particular. OTB is \
24                    distributed under a free software license CeCILL (similar to GNU GPL) to \
25                    encourage contribution from users and to promote reproducible research.
26
27homepage            http://www.orfeo-toolbox.org/otb/
28master_sites        http://orfeo-toolbox.org/packages/
29
30distname            OTB-${version}
31extract.suffix      .tgz
32
33checksums           rmd160  90ee3e47a79e2bee9525c1a9cbfa050a78e1c360 \
34                    sha256  9875484139b785163c0f0e19e76d458f598fd076b80d0d0aa0e3b59cafcad98e
35
36worksrcdir          ${workpath}/build
37patch.dir           ${workpath}/${distname}
38
39depends_lib-append  port:tiff \
40                    port:jpeg \
41                    port:libgeotiff \
42                    port:gdal \
43                    port:expat \
44                    port:boost \
45                    port:curl \
46                    port:libkml \
47                    port:tinyxml \
48                    port:muparser \
49                    port:opencv \
50                    port:fftw-3
51
52conflicts_build     libsvm \
53                    openjpeg15 \
54                    OpenSceneGraph \
55                    InsightToolkit
56
57post-extract {
58    file mkdir ${worksrcpath}
59}
60
61patchfiles-append       patch-Code_ApplicationEngine_otbWrapperApplication.h.diff
62
63use_parallel_build      no
64
65configure.args-append   ../${distname}/ \
66                        -DBUILD_APPLICATIONS=ON \
67                        -DBUILD_EXAMPLES=OFF \
68                        -DBUILD_TESTING=OFF
69
70# The default installation path for library is ${prefix}/lib/otb
71# But the cmake PortGroup is using rpath and CMAKE_INSTALL_NAME_DIR=${prefix}/lib
72configure.args-delete   -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib
73configure.args-append   -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/otb
74
75# Use external libs, where available
76configure.args-append   -DOTB_USE_EXTERNAL_EXPAT=ON \
77                        -DOTB_USE_EXTERNAL_BOOST=ON \
78                        -DOTB_USE_EXTERNAL_TINYXML=ON \
79                        -DOTB_USE_EXTERNAL_LIBKML=ON \
80                        -DOTB_USE_EXTERNAL_MUPARSER=ON \
81                        -DOTB_USE_CURL=ON \
82                        -DOTB_USE_OPENCV=ON
83
84# Use internal ITK (MacPorts ITK is outdated)
85configure.args-append   -DOTB_USE_EXTERNAL_ITK=OFF \
86                        -DOTB_USE_PATENTED=OFF
87
88# Use internal openjpeg (OTB needs 2.0 API, but does not support using the external lib yet)
89configure.args-append   -DOTB_USE_JPEG2000=ON
90
91# Use internal libs (no MacPorts alternatives available)
92configure.args-append   -DOTB_USE_EXTERNAL_OPENTHREADS=OFF \
93                        -DOTB_USE_EXTERNAL_OSSIM=OFF \
94                        -DOTB_USE_SIFTFAST=ON
95
96configure.args-append   -DITK_USE_FFTWF=OFF
97
98variant qt4 description {Wrap QT4} {
99    depends_lib-append      port:qt4-mac
100    configure.args-append   -DOTB_WRAP_QT=ON
101}
102
103variant python27 description {Wrap Python 2.7} {
104    depends_lib-append      port:python27 \
105                            port:swig \
106                            port:swig-python
107
108    patchfiles-append       patch-Code-Wrappers-SWIG-__init__.py.in.diff \
109                            patch-Code-Wrappers-SWIG-CMakeLists.txt.diff
110
111    configure.args-append   -DOTB_WRAP_PYTHON=ON \
112                            -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7 \
113                            -DOTB_INSTALL_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
114}
115
116livecheck.type      regex
117livecheck.url       ${master_sites}
118livecheck.regex     {OTB-(\d+(?:\.\d+)*)\.[tz]}
Note: See TracBrowser for help on using the repository browser.