# -*- 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: Portfile 112170 2013-10-14 14:15:25Z vince@macports.org $ PortSystem 1.0 name saga categories gis license GPL version 2.1.0 revision 2 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 ftp://ftp.cimaxonline.fr distname saga_${version}_src use_zip yes checksums rmd160 558332c890049c8c05b802aa2e413be2314697df \ sha256 eb4cfd9e1028a52d272bc2fe878ba4971b70fb79e6f73234e4c1519586a58a6c patchfiles patch-configure_in.diff\ patch-saga_cmd_cpp.diff depends_build port:autoconf \ port:automake \ port:libtool depends_lib port:wxWidgets-3.0\ port:geos\ port:gdal\ port:proj47\ port:jasper\ port:fftw-3\ port:unixodbc set wxver 3.0 set wx30frmwk ${frameworks_dir}/wxWidgets.framework/Versions/wxWidgets/${wxver} post-patch { reinplace -E "s|wx-config|${wx30frmwk}/bin/wx-config|" ${worksrcpath}/configure.in } use_autoreconf yes autoreconf.args -i configure.args --disable-openmp configure.cppflags-append -I${prefix}/lib/proj47/include configure.cppflags-append -I${wx30frmwk}/include/wx-${wxver} configure.cppflags-append -I${wx30frmwk}/lib/wx/include/osx_cocoa-unicode-${wxver} variant python27 { depends_lib-append port:python27\ port:swig-python configure.args-append --enable-python } pre-build { set mkfiles [exec find ${worksrcpath} -type f -name Makefile] foreach makefile ${mkfiles} { reinplace -E "s|wx-config|${wx30frmwk}/bin/wx-config|" ${makefile} } } livecheck.type regex livecheck.url ${master_sites} livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar