# -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2
PortGroup active_variants 1.1
long_description GRASS is a Geographic Information System (GIS) used for \
geospatial data management and analysis.
homepage http://grass.osgeo.org/
master_sites ${homepage}grass[join [lrange [split ${version} .] 0 1] {}]/source/
checksums rmd160 7c67afcd9ef8c75558ef8eafd8cab23ad257c37c \
sha256 5a84754614619cc265d843980e28f39a1d24048805b9b2865e76a583d973f333 \
depends_build port:pkgconfig
depends_lib port:fftw-3 \
path:lib/pkgconfig/cairo.pc:cairo \
# https://trac.macports.org/ticket/32790
# this should probably only apply to some Xcode versions
# compiler.blacklist *clang*
patchfiles patch-configure.diff \
patch-lib-init-grass.src.diff \
patch-macosx_Makefile.diff \
reinplace "s|@@APPLICATIONS_DIR@@|${applications_dir}|" ${worksrcpath}/configure
# https://trac.osgeo.org/grass/ticket/2169
reinplace "s|CC=gcc|CC=${configure.cc}|" ${worksrcpath}/gem/Makefile
configure.ldflags-append -framework OpenGL -framework Accelerate
--with-fftw-includes=${prefix}/include \
--with-fftw-libs=${prefix}/lib \
--with-freetype-includes=${prefix}/include/freetype2 \