# -*- 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

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           compiler_blacklist_versions 1.0
PortGroup           github 1.0

name                tinyxml2

github.setup        leethomason tinyxml2 10.0.0
revision            1
github.tarball_from archive

categories          textproc
license             zlib
maintainers         {@crowell crowell.biz:jeff} openmaintainer
description         Simple, small, C++ XML parser
long_description    TinyXML-2 is a simple, small, C++ XML parser that can be \
                    easily integrating into other programs.

checksums           rmd160  3cd309d75245c8fca70645f3971959217d227091 \
                    sha256  3bdf15128ba16686e69bce256cc468e76c7b94ff2c7f391cc5ec09e40bff3839 \
                    size    642421
# Old gcc and Xcode clang of 10.6 fail to build the port for 32-bit archs:
# https://trac.macports.org/ticket/66144
compiler.blacklist-append \
                    *gcc-3* *gcc-4.* {clang < 421}

configure.args-append \
                    -DBUILD_SHARED_LIBS=ON
