# -*- 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 compiler_blacklist_versions 1.0
pure.setup pure-stldict 0.8
maintainers {ryandesign @ryandesign} {gmail.com:aggraef @agraef}
description a Pure interface to the C++ dictionary containers
long_description ${name} provides ${description}.
checksums rmd160 edd27eea378ae97f444909e271307b5c30e313ad \
sha256 5b894ae6dc574c7022258e2732bea649c82c959ec4d0be13fb5a3e8ba8488f28
depends_build-append port:pkgconfig
patchfiles patch-Makefile.diff
patchfiles-append patch-tr1-support.diff
compiler.blacklist-append {clang < 137} gcc-* *llvm-gcc*
# These are set in the Makefile but the pure portgroup overrides them.
configure.cxxflags-append -g -std=c++0x -Wall
# No auto-detection of TR1 support yet.
# https://bitbucket.org/purelang/pure-lang/issue/29/pure-stldict-08-fails-to-build-on-os-x-108
if {${configure.cxx_stdlib} eq "libstdc++"} {
configure.cxxflags-append -DHAVE_TR1