[105020] trunk/dports/gis

stromnov at macports.org stromnov at macports.org
Sun Apr 7 15:24:29 PDT 2013


Revision: 105020
          https://trac.macports.org/changeset/105020
Author:   stromnov at macports.org
Date:     2013-04-07 15:24:29 -0700 (Sun, 07 Apr 2013)
Log Message:
-----------
gis/orfeotoolbox: new port

Added Paths:
-----------
    trunk/dports/gis/orfeotoolbox/
    trunk/dports/gis/orfeotoolbox/Portfile

Added: trunk/dports/gis/orfeotoolbox/Portfile
===================================================================
--- trunk/dports/gis/orfeotoolbox/Portfile	                        (rev 0)
+++ trunk/dports/gis/orfeotoolbox/Portfile	2013-04-07 22:24:29 UTC (rev 105020)
@@ -0,0 +1,115 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+PortGroup           cmake 1.0
+PortGroup           qt4 1.0
+
+name                orfeotoolbox
+version             3.16
+revision            0
+categories          gis graphics
+platforms           darwin
+license             CeCILL
+
+maintainers         gmail.com:julien.malik stromnov openmaintainer
+
+description         OrfeoToolbox - Free library of image processing algorithms
+
+long_description    ORFEO Toolbox (OTB) is distributed as an open source library of image \
+                    processing algorithms. OTB is based on the medical image processing library \
+                    ITK and offers particular functionalities for remote sensing image processing \
+                    in general and for high spatial resolution images in particular. OTB is \
+                    distributed under a free software license CeCILL (similar to GNU GPL) to \
+                    encourage contribution from users and to promote reproducible research.
+
+homepage            http://www.orfeo-toolbox.org/otb/
+master_sites        sourceforge:orfeo-toolbox
+
+distname            OTB-${version}
+extract.suffix      .tgz
+
+checksums           rmd160  582f2c0322bdcdda707f412de27b470b7b7fab5c \
+                    sha256  4fc8c12b8e2accfd40d6ed2b4ea05fc70fb51a896273525a9a11e521c9b71af6
+
+worksrcdir          ${worksrcdir}/build
+
+depends_lib-append  port:tiff \
+                    port:jpeg \
+                    port:openjpeg \
+                    port:libgeotiff \
+                    port:gdal \
+                    port:expat \
+                    port:fltk-devel \
+                    port:boost \
+                    port:curl \
+                    port:libkml \
+                    port:tinyxml \
+                    port:gettext
+
+pre-build {
+    if { ![catch {set installed [lindex [registry_active libsvm] 0]}]} {
+        ui_msg "OrfeoToolbox will fail to build because the 'libsvm' port is active. Deactivate"
+        ui_msg "'libsvm' by running 'port deactivate libsvm' and try again. You may reactivate"
+        ui_msg "'libsvm' after installing OrfeoToolbox by running 'port activate libsvm'."
+        return -code error "check is installed"
+    }
+}
+
+post-extract {
+    file mkdir ${worksrcpath}
+}
+
+use_parallel_build      no
+
+configure.args-append   ../ \
+                        -DBUILD_APPLICATIONS=ON \
+                        -DBUILD_EXAMPLES=OFF \
+                        -DBUILD_TESTING=OFF
+
+# The default installation path for library is ${prefix}/lib/otb
+# But the cmake PortGroup is using rpath and CMAKE_INSTALL_NAME_DIR=${prefix}/lib
+configure.args-delete   -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib
+configure.args-append   -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/otb
+
+# Use external FLTK (internal version is broken)
+configure.args-append   -DOTB_USE_EXTERNAL_FLTK=ON
+
+# Use external libs, where available
+configure.args-append   -DOTB_USE_EXTERNAL_EXPAT=ON \
+                        -DOTB_USE_EXTERNAL_BOOST=ON \
+                        -DOTB_USE_EXTERNAL_TINYXML=ON \
+                        -DOTB_USE_EXTERNAL_LIBKML=ON \
+                        -DOTB_USE_JPEG2000=ON \
+                        -DOTB_USE_CURL=ON
+
+# Use internal ITK (MacPorts ITK is outdated)
+configure.args-append   -DOTB_USE_EXTERNAL_ITK=OFF \
+                        -DITK_USE_REVIEW=ON \
+                        -DITK_USE_OPTIMIZED_REGISTRATION_METHODS=ON \
+                        -DOTB_USE_PATENTED=OFF \
+                        -DITK_USE_PATENTED=OFF
+
+# Use internal libs (no MacPorts alternatives available)
+configure.args-append   -DOTB_USE_EXTERNAL_OPENTHREADS=OFF \
+                        -DOTB_USE_LIBLAS=ON \
+                        -DOTB_USE_EXTERNAL_LIBLAS=OFF \
+                        -DOTB_USE_EXTERNAL_OSSIM=OFF \
+                        -DOTB_USE_EXTERNAL_MUPARSER=OFF \
+                        -DOTB_USE_SIFTFAST=ON
+
+variant qt4 description {Wrap QT4} {
+    depends_lib-append      port:qt4-mac
+    configure.args-append   -DOTB_WRAP_QT=ON
+}
+
+variant python27 description {Wrap Python 2.7} {
+    depends_lib-append      port:python27 \
+                            port:swig \
+                            port:swig-python
+    configure.args-append   -DOTB_WRAP_PYTHON=ON \
+                            -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7 \
+                            -DOTB_INSTALL_PYTHON_DIR=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages
+}
+
+livecheck.regex     "OTB-(\\d+(?:\\.\\d+)*)${extract.suffix}"


Property changes on: trunk/dports/gis/orfeotoolbox/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130407/4f17046f/attachment.html>


More information about the macports-changes mailing list