Ticket #36496: gdal.diff

File gdal.diff, 2.0 KB (added by jsm@…, 10 years ago)

patch of the gdal Portfile

  • Portfile

    old new  
    55
    66name                gdal
    77version             1.10.1
    8 revision            2
     8revision            3
    99categories          gis
    1010license             MIT BSD
    1111platforms           darwin
     
    135135variant mrsid description {Enable MrSID file format} {
    136136    depends_lib-append      port:geoexpress-sdk
    137137    configure.args-delete   --without-mrsid
    138     configure.args-append       --with-mrsid=${prefix}/share/Geo_DSDK
    139 
    140     # Fixes for Geo_DSDK 7.x - http://trac.osgeo.org/gdal/ticket/2410
    141     patchfiles-append       patch-frmts_mrsid_mrsiddataset.cpp \
    142                             patch-mrsid-configure
     138    configure.args-append       --with-mrsid=${prefix}/share/Geo_DSDK/Raster_DSDK
    143139}
    144140
    145141variant hdf4 description {Enable HDF4 file format} {
     
    323319    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    324320    xinstall -m 644 -W ${worksrcpath} HOWTO-RELEASE NEWS VERSION \
    325321        ${destroot}${prefix}/share/doc/${name}
     322
     323    if {[variant_isset mrsid]} {
     324         foreach f [list \
     325            bin/gdal_contour \
     326            bin/gdal_grid \
     327            bin/gdal_rasterize \
     328            bin/gdal_translate \
     329            bin/gdaladdo \
     330            bin/gdalbuildvrt \
     331            bin/gdaldem \
     332            bin/gdalenhance \
     333            bin/gdalinfo \
     334            bin/gdallocationinfo \
     335            bin/gdalmanage \
     336            bin/gdalserver \
     337            bin/gdalsrsinfo \
     338            bin/gdaltindex \
     339            bin/gdaltransform \
     340            bin/gdalwarp \
     341            bin/nearblack \
     342            bin/ogr2ogr \
     343            bin/ogrinfo \
     344            bin/ogrtindex \
     345            bin/testepsg \
     346            lib/libgdal.1.dylib] \
     347            {
     348                exec install_name_tool -change libltidsdk.8.dylib ${prefix}/share/Geo_DSDK/Raster_DSDK/lib/libltidsdk.8.dylib ${destroot}${prefix}/${f}
     349            }
     350    }
     351
    326352}
    327353
    328354livecheck.type  regex