# -*- 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
PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
PortGroup legacysupport 1.0
PortGroup conflicts_build 1.0
github.setup OSGeo gdal 3.0.2 v
maintainers {vince @Veence} openmaintainer
description GDAL - Geospatial Data Abstraction Library
long_description GDAL is a translator library for raster geospatial \
data formats that is released under an X/MIT style \
Open Source license. As a library, it presents a \
single abstract data model to the calling application \
for all supported formats. The related OGR library \
(which lives within the GDAL source tree) provides a \
similar capability for simple features vector data.
homepage https://www.gdal.org/
checksums rmd160 bfe758959a3358a3974ab4417a1ad3bdbe85c489 \
sha256 c45054df0fb31b80c6a419507da4719f81e0247a2045dd7c37befb6a8b1a6e6e \
worksrcdir ${worksrcpath}/gdal
# see https://trac.macports.org/ticket/55752
patchfiles-append MacTypes.diff
# see https://trac.macports.org/ticket/56517
if {[string match *clang* ${configure.cxx}]} {
configure.ldflags-append -stdlib=${configure.cxx_stdlib}
# see https://trac.macports.org/ticket/58948
patchfiles-append patch-bash-completion-location.diff
# apply upstream patches to fix build against recent versions of Poppler
patchfiles-append patch-poppler.diff
# this can be removed in a future version of MacPorts
# see https://github.com/macports/macports-base/pull/161
compiler.blacklist-append {clang < 800}
compiler.cxx_standard 2014
# See https://trac.macports.org/ticket/56908
compiler.thread_local_storage yes