Ticket #55748: Portfile-rsgislib.diff
File Portfile-rsgislib.diff, 6.0 KB (added by ryandesign (Ryan Carsten Schmidt), 7 years ago) |
---|
-
Portfile
1 1 # -*- 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 2 2 3 3 PortSystem 1.0 4 PortGroup cmake 1.05 4 PortGroup bitbucket 1.0 5 PortGroup cmake 1.1 6 6 7 bitbucket.setup petebunting rsgislib 9135d61 8 version 2.1.20140825 9 revision 3 7 bitbucket.setup petebunting rsgislib 3.4.9 10 8 categories gis 11 9 license GPL-3 12 maintainers vince10 maintainers {vince @Veence} 13 11 description RSGISlib - Remote Sensing and GIS Library 14 12 long_description This library provides a lot of advanced tools to \ 15 13 perform image analysis and feature detection in \ … … 16 14 remote sensing and GIS applications. 17 15 platforms darwin 18 16 homepage http://www.rsgislib.org 17 bitbucket.tarball_from downloads 19 18 19 checksums rmd160 028471cc352fc787ed8fd3e230f68c7db486107d \ 20 sha256 a271aee61395166542f3283fe899eff317ffb782f59ca90da0f008a203ebe5f3 \ 21 size 8092496 22 20 23 depends_lib-append port:gdal \ 21 24 port:geos \ 22 25 port:cgal \ … … 36 39 } 37 40 } 38 41 39 fetch.type hg 42 patchfiles patch-CMakeLists.txt.diff 40 43 41 patchfiles patch-cmakelists_txt.diff 44 # /bin/sh: line 0: cd: build/python: No such file or directory 45 cmake.out_of_source no 42 46 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 } 47 configure.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 50 72 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} \ 73 variant python27 description {Build with Python 2.7 bindings} \ 79 74 conflicts python33 python34 { 80 75 81 76 depends_build-append port:py27-numpy … … 83 78 configure.args-append -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/2.7/ 84 79 } 85 80 86 variant python33 description { builds with Python 33 bindings} \81 variant python33 description {Build with Python 3.3 bindings} \ 87 82 conflicts python27 python34 { 88 83 89 84 depends_build-append port:py33-numpy … … 91 86 configure.args-append -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/3.3/ 92 87 } 93 88 94 variant python34 description { builds with Python 34 bindings} \89 variant python34 description {Build with Python 3.4 bindings} \ 95 90 conflicts python27 python33 { 96 91 97 92 depends_build-append port:py34-numpy … … 98 93 configure.args-append -DPYTHON_EXE=${prefix}/bin/python3.4 99 94 configure.args-append -DPYTHON_INSTALL_PREFIX=${destroot}${frameworks_dir}/Python.framework/Versions/3.4/ 100 95 } 101 102 #build.dir ${worksrcpath}/trunk