Ticket #55748: Portfile-rsgislib.diff

File Portfile-rsgislib.diff, 6.0 KB (added by ryandesign (Ryan Carsten Schmidt), 6 years ago)
  • Portfile

     
    11# -*- 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
    22
    33PortSystem          1.0
    4 PortGroup           cmake 1.0
    54PortGroup           bitbucket 1.0
     5PortGroup           cmake 1.1
    66
    7 bitbucket.setup     petebunting rsgislib 9135d61
    8 version             2.1.20140825
    9 revision            3
     7bitbucket.setup     petebunting rsgislib 3.4.9
    108categories          gis
    119license             GPL-3
    12 maintainers         vince
     10maintainers         {vince @Veence}
    1311description         RSGISlib - Remote Sensing and GIS Library
    1412long_description    This library provides a lot of advanced tools to \
    1513                    perform image analysis and feature detection in \
     
    1614                    remote sensing and GIS applications.
    1715platforms           darwin
    1816homepage            http://www.rsgislib.org
     17bitbucket.tarball_from  downloads
    1918
     19checksums               rmd160  028471cc352fc787ed8fd3e230f68c7db486107d \
     20                        sha256  a271aee61395166542f3283fe899eff317ffb782f59ca90da0f008a203ebe5f3 \
     21                        size    8092496
     22
    2023depends_lib-append      port:gdal \
    2124                        port:geos \
    2225                        port:cgal \
     
    3639    }
    3740}
    3841
    39 fetch.type              hg
     42patchfiles              patch-CMakeLists.txt.diff
    4043
    41 patchfiles              patch-cmakelists_txt.diff
     44# /bin/sh: line 0: cd: build/python: No such file or directory
     45cmake.out_of_source     no
    4246
    43 pre-configure {
    44     if {[file exists ${prefix}/lib/libboost_filesystem-mt.dylib]} {
    45         reinplace -E "s|(boost_\[^ )\]*)|\\1-mt|g" ${worksrcpath}/CMakeLists.txt
    46         reinplace -E "s|(DESTINATION) doc|\\1 share\/doc\/rsgislib|" \
    47             ${worksrcpath}/CMakeLists.txt
    48     }
    49 }
     47configure.args-append   -DBOOST_INCLUDE_DIR=${prefix}/include \
     48                        -DBOOST_LIB_PATH=${prefix}/lib \
     49                        -DCGAL_INCLUDE_DIR=${prefix}/include \
     50                        -DCGAL_LIB_PATH=${prefix}/lib \
     51                        -DFFTW_INCLUDE_DIR=${prefix}/include \
     52                        -DFFTW_LIB_PATH=${prefix}/lib \
     53                        -DGDAL_INCLUDE_DIR=${prefix}/include \
     54                        -DGDAL_LIB_PATH=${prefix}/lib \
     55                        -DGEOS_INCLUDE_DIR=${prefix}/include \
     56                        -DGEOS_LIB_PATH=${prefix}/lib \
     57                        -DGMP_INCLUDE_DIR=${prefix}/include \
     58                        -DGMP_LIB_PATH=${prefix}/lib \
     59                        -DGSL_INCLUDE_DIR=${prefix}/include \
     60                        -DGSL_LIB_PATH=${prefix}/lib \
     61                        -DHDF5_INCLUDE_DIR=${prefix}/include \
     62                        -DHDF5_LIB_PATH=${prefix}/lib \
     63                        -DINSTALL_PYTHON_USING_PREFIX=ON \
     64                        -DKEA_INCLUDE_DIR=${prefix}/include \
     65                        -DKEA_LIB_PATH=${prefix}/lib \
     66                        -DMPFR_INCLUDE_DIR=${prefix}/include \
     67                        -DMPFR_LIB_PATH=${prefix}/lib \
     68                        -DMUPARSER_INCLUDE_DIR=${prefix}/include \
     69                        -DMUPARSER_LIB_PATH=${prefix}/lib \
     70                        -DXERCESC_INCLUDE_DIR=${prefix}/include \
     71                        -DXERCESC_LIB_PATH=${prefix}/lib
    5072
    51 #configure.dir           ${worksrcpath}/trunk
    52 configure.args-append   -DBOOST_INCLUDE_DIR=${prefix} \
    53                         -DBOOST_LIB_PATH=${prefix}\
    54                         -DGDAL_INCLUDE_DIR=${prefix} \
    55                         -DGDAL_LIB_PATH=${prefix}\
    56                         -DHDF5_INCLUDE_DIR=${prefix} \
    57                         -DHDF5_LIB_PATH=${prefix} \
    58                         -DXERCESC_INCLUDE_DIR=${prefix} \
    59                         -DXERCESC_LIB_PATH=${prefix} \
    60                         -DGSL_INCLUDE_DIR=${prefix} \
    61                         -DGSL_LIB_PATH=${prefix} \
    62                         -DFFTW_INCLUDE_DIR=${prefix} \
    63                         -DFFTW_LIB_PATH=${prefix} \
    64                         -DGEOS_INCLUDE_DIR=${prefix} \
    65                         -DGEOS_LIB_PATH=${prefix} \
    66                         -DMUPARSER_INCLUDE_DIR=${prefix} \
    67                         -DMUPARSER_LIB_PATH=${prefix} \
    68                         -DCGAL_INCLUDE_DIR=${prefix} \
    69                         -DCGAL_LIB_PATH=${prefix} \
    70                         -DGMP_INCLUDE_DIR=${prefix} \
    71                         -DGMP_LIB_PATH=${prefix} \
    72                         -DMPFR_INCLUDE_DIR=${prefix} \
    73                         -DMPFR_LIB_PATH=${prefix} \
    74                         -DKEA_INCLUDE_DIR=${prefix} \
    75                         -DKEA_LIB_PATH=${prefix} \
    76                         -DCMAKE_VERBOSE_MAKEFILE=ON
    77 
    78 variant python27 description {builds with Python 27 bindings} \
     73variant python27 description {Build with Python 2.7 bindings} \
    7974                 conflicts python33 python34 {
    8075
    8176    depends_build-append    port:py27-numpy
     
    8378    configure.args-append   -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/2.7/
    8479}
    8580
    86 variant python33 description {builds with Python 33 bindings} \
     81variant python33 description {Build with Python 3.3 bindings} \
    8782                 conflicts python27 python34 {
    8883
    8984    depends_build-append    port:py33-numpy
     
    9186    configure.args-append   -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/3.3/
    9287}
    9388
    94 variant python34 description {builds with Python 34 bindings} \
     89variant python34 description {Build with Python 3.4 bindings} \
    9590                 conflicts python27 python33 {
    9691
    9792    depends_build-append    port:py34-numpy
     
    9893    configure.args-append   -DPYTHON_EXE=${prefix}/bin/python3.4
    9994    configure.args-append   -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/3.4/
    10095}
    101 
    102 #build.dir               ${worksrcpath}/trunk