Changeset 118977 for trunk/dports/gis


Ignore:
Timestamp:
Apr 14, 2014, 1:28:00 PM (5 years ago)
Author:
stromnov@…
Message:

orfeotoolbox: update to version 4.0.0

Location:
trunk/dports/gis/orfeotoolbox
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gis/orfeotoolbox/Portfile

    r108470 r118977  
    77
    88name                orfeotoolbox
    9 version             3.18.1
     9version             4.0.0
    1010revision            0
    1111categories          gis graphics
     
    2525
    2626homepage            http://www.orfeo-toolbox.org/otb/
    27 master_sites        sourceforge:orfeo-toolbox
     27master_sites        http://orfeo-toolbox.org/packages/
    2828
    2929distname            OTB-${version}
    3030extract.suffix      .tgz
    3131
    32 checksums           rmd160  fcdc8cd68d97b04c4f3f66d65f2fc2e5fb992adb \
    33                     sha256  0cdc7da4a4798b7d6254997321e8d1717e1d774adc0356f33f365b4a446ace2e
     32checksums           rmd160  90ee3e47a79e2bee9525c1a9cbfa050a78e1c360 \
     33                    sha256  9875484139b785163c0f0e19e76d458f598fd076b80d0d0aa0e3b59cafcad98e
    3434
    35 worksrcdir          ${worksrcdir}/build
     35worksrcdir          ${worksrcdir}/../build
    3636patch.dir           ${workpath}/${distname}
    3737
     
    4141                    port:gdal \
    4242                    port:expat \
    43                     port:fltk-devel \
    4443                    port:boost \
    4544                    port:curl \
     
    4746                    port:tinyxml \
    4847                    port:muparser \
    49                     port:gettext \
    50                     port:opencv
     48                    port:opencv \
     49                    port:fftw-3
    5150
    5251pre-build {
    53     if { ![catch {set installed [lindex [registry_active libsvm] 0]}]} {
    54         ui_msg "OrfeoToolbox will fail to build because the 'libsvm' port is active. Deactivate"
    55         ui_msg "'libsvm' by running 'port deactivate libsvm' and try again. You may reactivate"
    56         ui_msg "'libsvm' after installing OrfeoToolbox by running 'port activate libsvm'."
    57         return -code error "check is installed"
     52    foreach c {libsvm openjpeg15 OpenSceneGraph InsightToolkit} {
     53        if { ![catch {set installed [lindex [registry_active $c] 0]}]} {
     54            ui_msg "OrfeoToolbox will fail to build because the '$c' port is active. Deactivate"
     55            ui_msg "'$c' by running 'port deactivate $c' and try again. You may reactivate"
     56            ui_msg "'$c' after installing OrfeoToolbox by running 'port activate $c'."
     57            return -code error "check is installed"
     58        }
    5859    }
    5960}
     
    6364}
    6465
     66patchfiles-append       patch-Code_ApplicationEngine_otbWrapperApplication.h.diff
     67
    6568use_parallel_build      no
    6669
    67 configure.args-append   ../ \
     70configure.args-append   ../${distname}/ \
    6871                        -DBUILD_APPLICATIONS=ON \
    6972                        -DBUILD_EXAMPLES=OFF \
     
    7477configure.args-delete   -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib
    7578configure.args-append   -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/otb
    76 
    77 # Use external FLTK (internal version is broken)
    78 configure.args-append   -DOTB_USE_EXTERNAL_FLTK=ON
    7979
    8080# Use external libs, where available
     
    8787                        -DOTB_USE_OPENCV=ON
    8888
    89 # Use internal ITK (MacPorts ITK is outdated, and internal ITK is patched)
     89# Use internal ITK (MacPorts ITK is outdated)
    9090configure.args-append   -DOTB_USE_EXTERNAL_ITK=OFF \
    91                         -DITK_USE_REVIEW=ON \
    92                         -DITK_USE_OPTIMIZED_REGISTRATION_METHODS=ON \
    93                         -DOTB_USE_PATENTED=OFF \
    94                         -DITK_USE_PATENTED=OFF
     91                        -DOTB_USE_PATENTED=OFF
    9592
    9693# Use internal openjpeg (OTB needs 2.0 API, but does not support using the external lib yet)
     
    9996# Use internal libs (no MacPorts alternatives available)
    10097configure.args-append   -DOTB_USE_EXTERNAL_OPENTHREADS=OFF \
    101                         -DOTB_USE_LIBLAS=ON \
    102                         -DOTB_USE_EXTERNAL_LIBLAS=OFF \
    10398                        -DOTB_USE_EXTERNAL_OSSIM=OFF \
    10499                        -DOTB_USE_SIFTFAST=ON
     100
     101configure.args-append   -DITK_USE_FFTWF=OFF
    105102
    106103variant qt4 description {Wrap QT4} {
     
    122119}
    123120
    124 livecheck.regex     "OTB-(\\d+(?:\\.\\d+)*)${extract.suffix}"
     121livecheck.type      regex
     122livecheck.url       ${master_sites}
     123livecheck.regex     {OTB-(\d+(?:\.\d+)*)\.[tz]}
Note: See TracChangeset for help on using the changeset viewer.