# $Id: Portfile 145636 2016-02-11 18:52:48Z ionic@macports.org $ PortSystem 1.0 PortGroup cmake 1.0 PortGroup bitbucket 1.0 bitbucket.setup petebunting rsgislib 9135d61 version 2.1.20140825 categories gis license GPL-3 maintainers vince description RSGISlib - Remote Sensing and GIS Library long_description This library provides a lot of advanced tools to \ perform image analysis and feature detection in \ remote sensing and GIS applications. platforms darwin homepage http://www.rsgislib.org depends_lib-append port:gdal \ port:geos \ port:cgal \ port:proj \ port:boost \ port:xercesc3 \ port:gsl \ port:fftw-3 \ port:kealib \ port:muparser pre-fetch { if {![variant_isset python27] && ![variant_isset python33] && \ ![variant_isset python34]} { return -code error "You must choose at least one Python variant." } } fetch.type hg patchfiles patch-cmakelists_txt.diff pre-configure { if {[file exists ${prefix}/lib/libboost_filesystem-mt.dylib]} { reinplace -E "s|(boost_\[^ )\]*)|\\1-mt|g" ${worksrcpath}/CMakeLists.txt reinplace -E "s|(DESTINATION) doc|\\1 share\/doc\/rsgislib|" \ ${worksrcpath}/CMakeLists.txt } } #configure.dir ${worksrcpath}/trunk configure.args-append -DBOOST_INCLUDE_DIR=${prefix} \ -DBOOST_LIB_PATH=${prefix}\ -DGDAL_INCLUDE_DIR=${prefix} \ -DGDAL_LIB_PATH=${prefix}\ -DHDF5_INCLUDE_DIR=${prefix} \ -DHDF5_LIB_PATH=${prefix} \ -DXERCESC_INCLUDE_DIR=${prefix} \ -DXERCESC_LIB_PATH=${prefix} \ -DGSL_INCLUDE_DIR=${prefix} \ -DGSL_LIB_PATH=${prefix} \ -DFFTW_INCLUDE_DIR=${prefix} \ -DFFTW_LIB_PATH=${prefix} \ -DGEOS_INCLUDE_DIR=${prefix} \ -DGEOS_LIB_PATH=${prefix} \ -DMUPARSER_INCLUDE_DIR=${prefix} \ -DMUPARSER_LIB_PATH=${prefix} \ -DCGAL_INCLUDE_DIR=${prefix} \ -DCGAL_LIB_PATH=${prefix} \ -DGMP_INCLUDE_DIR=${prefix} \ -DGMP_LIB_PATH=${prefix} \ -DMPFR_INCLUDE_DIR=${prefix} \ -DMPFR_LIB_PATH=${prefix} \ -DKEA_INCLUDE_DIR=${prefix} \ -DKEA_LIB_PATH=${prefix} \ -DCMAKE_VERBOSE_MAKEFILE=ON variant python27 description {builds with Python 27 bindings} \ conflicts python33 python34 { depends_build-append port:py27-numpy configure.args-append -DPYTHON_EXE=${prefix}/bin/python2.7 configure.args-append -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/2.7/ } variant python33 description {builds with Python 33 bindings} \ conflicts python27 python34 { depends_build-append port:py33-numpy configure.args-append -DPYTHON_EXE=${prefix}/bin/python3.3 configure.args-append -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/3.3/ } variant python34 description {builds with Python 34 bindings} \ conflicts python27 python33 { depends_build-append port:py34-numpy configure.args-append -DPYTHON_EXE=${prefix}/bin/python3.4 configure.args-append -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/3.4/ } #build.dir ${worksrcpath}/trunk