# -*- 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
maintainers hbaspecto.com:jea openmaintainer
long_description MapServer is an Open Source development environment for \
building spatially-enabled internet applications.
homepage http://mapserver.org
master_sites http://download.osgeo.org/mapserver
checksums rmd160 690374d43a1b733c3b7acd73c37099d95554c599 \
sha256 237d83f84042fef8a63c590256aaa3bc1400668a470b52252fae197d9689e41c
depends_build port:pkgconfig
patchfiles-append patch-configure.diff
configure.args --with-gd=${prefix} \
default_variants +wms +gdal +ogr +proj +cairo +wfs +proj \
+geos +postgis +wmsclient +wfsclient \
if {[variant_isset postgis]} {
# check for most recent version of postgresql installed
set HAVE_PGCONFIG [llength [glob -nocomplain -d ${prefix}/lib postgresql*/bin/pg_config]]
# if not found, intall the postgresql port
if {$HAVE_PGCONFIG == 0} {
depends_lib-append port:postgresql96
variant postgis description {Add support for postgis sources} {
set PGSQL_DIR [lindex [lsort -dec [glob -nocomplain -d ${prefix}/lib postgresql*]] 0]
configure.args-append "--with-postgis=${PGSQL_DIR}/bin/pg_config"
variant wms requires proj description {Add WMS server support} {
variant wfs requires proj ogr geos description {Add WFS server support} {
depends_lib-append port:libxml2
configure.args-append --with-wfs