# -*- 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
wxWidgets.use wxWidgets-3.0
#set branch [join [lrange [split ${version} .] 0 1] .]
maintainers {vince @Veence} 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\
homepage http://www.saga-gis.org/en/index.html
master_sites sourceforge:project/saga-gis/SAGA%20-%206/SAGA%20-%20${version}
checksums rmd160 4fd7f91c0c6511f5356528a8b148b714d7d4c542 \
sha256 bb4b99406e3a25cdaa12559904ce3272c449acb542bc0883b2755ce6508dd243
patchfiles patch-configure.diff
depends_build port:autoconf \
depends_lib-append port:${wxWidgets.port}
fs-traverse f ${worksrcpath} {
if {[file isfile ${f}]} {
switch [file tail ${f}] {
reinplace -E -q "s|wx-config|${wxWidgets.wxconfig}|" ${f}
configure.cppflags-append -I${prefix}/lib/proj5/include
configure.cxxflags-append -std=c++11
configure.ldflags-append -L${prefix}/lib/proj5/lib
configure.args --disable-openmp \