Changeset 121188 for trunk/dports/gis


Ignore:
Timestamp:
Jun 19, 2014, 5:19:48 PM (5 years ago)
Author:
vince@…
Message:

Bump to 1.11.0. Also enable ECW via manual installation of the SDK.
More to come…

Location:
trunk/dports/gis/gdal
Files:
2 added
1 edited

Legend:

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

    r121105 r121188  
    55
    66name                gdal
    7 version             1.10.1
    8 revision            5
     7version             1.11.0
    98categories          gis
    109license             MIT BSD
     
    2827                    http://download.osgeo.org/gdal/CURRENT/
    2928
    30 checksums           rmd160  b06cbd0f34a6dad99768d5f75a9856e4e027d3bc \
    31                     sha256  9984f0314c0bd831eb59fb646c2bc5e13cf1378be4f51499045166cbe62be6ea
     29checksums           rmd160  0a522a145131b65103d0e6c02e52651069005e48 \
     30                    sha256  989db33ff411e2c888348e71edec5ad06c74ed68781ebfbc4e85179b9d65aafe
    3231
    3332depends_lib-append  port:zlib \
     
    9796patchfiles          patch-swig_python_GNUmakefile \
    9897                    patch-gdalwarpkernel_opencl_c.diff \
    99                     patch-gdalwarpkernel_opencl_c_2.diff \
    10098                    patch-gdalwarpkernel_opencl_h.diff
    101 
    102 # Upstream fix for "Undefined symbols: _environ"
    103 patchfiles-append   patch-port-cpl_spawn.cpp.diff
    10499
    105100# Patches for universal build
     
    138133    configure.args-delete   --without-mrsid
    139134    configure.args-append       --with-mrsid=${prefix}/share/Geo_DSDK/Raster_DSDK
     135}
     136
     137variant ecw description {Enable ECW file format} {
     138    configure.args-delete   --without-ecw
     139    configure.args-append   --with-ecw=${prefix}/lib/ECW
     140
     141    if {${configure.cxx_stdlib} == "libc++" } {
     142        patchfiles-append       patch-configure-ecw-libcxx.diff
     143    } else {
     144        patchfiles-append       patch-configure-ecw-libstdcxx.diff
     145    }
     146
     147    pre-configure {
     148        if {(![file exists ${prefix}/lib/ECW]) && \
     149        (![file exists /Intergraph/ERDASEcwJpeg2000SDK5.1.1/Desktop_Read-Only])} {
     150            ui_error "
     151****
     152* The Intergraph ECW SDK version 5.1.1 is needed to
     153* compile gdal with the ecw variant. It must be installed separately.
     154* Please download the Mac OS X version of the SDK
     155* 'ERDAS ECW/JP2 SDK v5.1.1 (MacOSX)' from
     156* http://download.intergraph.com/
     157* Choose to install it in ${prefix}/lib/ECW.
     158* Then try to install GDAL again.
     159****"       
     160            return -code error "ECW SDK 5.1.1 not installed."
     161        }
     162       
     163        if {(![file exists ${prefix}/lib/ECW]) && \
     164            ([file exists /Intergraph/ERDASEcwJpeg2000SDK5.1.1/Desktop_Read-Only])} {
     165
     166          ui_error "
     167****
     168* Please create symbolic links from the /Intergraph directory to
     169* ${prefix}/lib/ECW, by executing at the prompt:
     170* sudo ln -s /Intergraph/ERDASEcwJpeg2000SDK5.1.1/Desktop_Read-Only \
     171                  ${prefix}/lib/ECW"
     172* Or reinstall the ECW SDK in ${prefix}/lib/ECW directly.
     173* Then try again.
     174****"
     175            return -code error "Symlinks missing."
     176        }
     177    }
    140178}
    141179
     
    315353        reinplace "s|\$\(EXPAT_INCLUDE\)||" $makefile
    316354    }
     355   
     356    reinplace -E "s|(GEOS_CFLAGS.*=).*|\\1|" ${worksrcpath}/GDALmake.opt
    317357}
    318358
     
    343383            bin/ogr2ogr \
    344384            bin/ogrinfo \
     385            bin/ogrlineref \
    345386            bin/ogrtindex \
    346387            bin/testepsg \
     
    351392    }
    352393
     394    if {[variant_isset ecw]} {
     395          foreach f [list \
     396            bin/gdal_contour \
     397            bin/gdal_grid \
     398            bin/gdal_rasterize \
     399            bin/gdal_translate \
     400            bin/gdaladdo \
     401            bin/gdalbuildvrt \
     402            bin/gdaldem \
     403            bin/gdalenhance \
     404            bin/gdalinfo \
     405            bin/gdallocationinfo \
     406            bin/gdalmanage \
     407            bin/gdalserver \
     408            bin/gdalsrsinfo \
     409            bin/gdaltindex \
     410            bin/gdaltransform \
     411            bin/gdalwarp \
     412            bin/nearblack \
     413            bin/ogr2ogr \
     414            bin/ogrinfo \
     415            bin/ogrlineref \
     416            bin/ogrtindex \
     417            bin/testepsg \
     418            lib/libgdal.1.dylib] \
     419            {
     420                if {${configure.cxx_stdlib} == "libc++"} {
     421                    exec install_name_tool -change \
     422                        /Users/jenkins/hudson/workspace/RL_5.1.1_ECWJP2SDK_OSX/Master/libNCSEcw.dylib ${prefix}/lib/ECW/redistributable/libc++/libNCSEcw.dylib \
     423                        ${destroot}${prefix}/${f}
     424                } else {
     425                    exec install_name_tool -change \
     426                        /Users/jenkins/hudson/workspace/RL_5.1.1_ECWJP2SDK_OSX/Master/libNCSEcw.dylib ${prefix}/lib/ECW/redistributable/libstdc++/libNCSEcw.dylib \
     427                        ${destroot}${prefix}/${f}
     428                }
     429            }
     430    }
     431
    353432}
    354433
Note: See TracChangeset for help on using the changeset viewer.