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

name                tinyxml2

github.setup        leethomason tinyxml2 11.0.0
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  a1fbed8c734223297734e8b2984d9f7051d5162f \
                    sha256  5556deb5081fb246ee92afae73efd943c889cef0cafea92b0b82422d6a18f289 \
                    size    642878 
# 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
