Ticket #48677: kealib.diff

File kealib.diff, 1.9 KB (added by ryandesign (Ryan Schmidt), 6 years ago)
  • Portfile

     
    44PortGroup           cmake 1.0
    55PortGroup           bitbucket 1.0
    66
    7 bitbucket.setup     chchrsc kealib c6d36f3
     7bitbucket.setup     chchrsc kealib 1.4.4
    88categories          gis
    9 version             1.4.2.20140825
    10 revision            2
    119license             MIT
    1210maintainers         vince
    1311description         KEAlib - Implements KEA file format into HDF5 format
     
    1715                    built atop HDF5.
    1816platforms           darwin
    1917homepage            https://bitbucket.org/chchrsc/kealib
     18bitbucket.tarball_from  downloads
    2019
     20checksums               rmd160  75b2c52bfde30d7317edcded3647d10871e05f51 \
     21                        sha256  a7da510cc8df545fdb270ae509f7cec40d9ab5c98415459283cffb667d421063
     22
    2123depends_lib-append  port:gdal \
    2224                    port:hdf5
    2325
    24 fetch.type          hg
     26worksrcdir              ${worksrcdir}/trunk
    2527
    26 pre-configure {
    27     reinplace -E "s/(gdalplugins)/lib\\/\\1/" ${worksrcpath}/trunk/gdal/CMakeLists.txt
    28 }
     28patchfiles              patch-gdal-CMakeLists.txt.diff
    2929
    30 configure.dir           ${worksrcpath}/trunk
    3130configure.args-append   -DGDAL_INCLUDE_DIR=${prefix} \
    3231                        -DGDAL_LIB_PATH=${prefix} \
    3332                        -DHDF5_INCLUDE_DIR=${prefix} \
    34                         -DHDF5_LIB_PATH=${prefix} \
    35                         -DCMAKE_VERBOSE_MAKEFILE=ON
     33                        -DHDF5_LIB_PATH=${prefix}
    3634
    37 build.dir               ${worksrcpath}/trunk
     35cmake.out_of_source     no
     36
    3837use_parallel_build      no
    3938
    40 pre-install {
    41     ui_msg "To be able to use KEA format in GDAL, set and export\
    42             (or setenv) the variable GDAL_DRIVER_PATH to \
    43             ${prefix}/lib/gdalplugins."
    44 }
     39notes "
     40To be able to use KEA format in GDAL, set and export (or setenv) the\
     41variable GDAL_DRIVER_PATH to ${prefix}/lib/gdalplugins.
     42"