# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup wxWidgets 1.0 name saga categories gis license GPL version 3.0.0 #set branch [join [lrange [split ${version} .] 0 1] .] platforms darwin maintainers vince openmaintainer description SAGA is a GIS oriented towards statistics and analysis long_description SAGA is yet another open source GIS targeted towards\ spatial analysis and statistics. It uses wxWidgets as\ a GUI. homepage http://www.saga-gis.org/en/index.html master_sites sourceforge:project/saga-gis/SAGA%20-%203/SAGA%20-%20${version} distname saga_${version} worksrcdir saga-${version} checksums rmd160 30f0124aba3228f98c912d529c65a99ede19a549 \ sha256 fa8b8f5f95705bfa72f6969a23e75195f2d939f835b7243f8dcb9f780df3627f patchfiles patch-configure.diff # patch-saga_cmd_cpp.diff wxWidgets.use wxWidgets-3.0 depends_build port:autoconf \ port:automake \ port:libtool depends_lib port:${wxWidgets.port} \ port:geos \ port:gdal \ port:proj \ port:jasper \ port:fftw-3 \ port:unixodbc \ port:qhull post-patch { reinplace -E "s|wx-config|${wxWidgets.wxconfig}|" ${worksrcpath}/configure set mkfiles [exec find ${worksrcpath} -type f -name Makefile.in] foreach makefile ${mkfiles} { reinplace -E "s|wx-config|${wxWidgets.wxconfig}|" ${makefile} } } #use_autoreconf yes #autoreconf.args -i configure.args --disable-openmp \ --enable-debug \ --disable-triangle \ --disable-libfire variant python27 { depends_lib-append port:python27\ port:swig-python configure.args-append --enable-python configure.env-append PYTHON="${prefix}/bin/python2.7" configure.env-append PYTHON_VERSION="2.7" } variant libfire { configure.args-delete --disable-libfire } variant postgresql95 conflicts postgresql96 { depends_lib-append port:postgresql95 configure.args-append --with-postgresql=${prefix}/lib/postgresql95/bin/pg_config } variant postgresql96 conflicts postgresql95 { depends_lib-append port:postgresql96 configure.args-append --with-postgresql=${prefix}/lib/postgresql96/bin/pg_config } default_variants +python27 post-destroot { if {[variant_isset python27]} { file mkdir ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7 file rename ${destroot}${prefix}/lib/python2.7/site-packages \ ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages } } configure.ldflags-append -gdwarf-3 configure.cxxflags-append -gdwarf-3 livecheck.regex ${name}_(\[0-9a-z.\]+)${extract.suffix}