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

name                tinyxml
version             2.6.2
revision            3
categories          textproc
maintainers         nomaintainer
license             zlib
description         Simple, small, C++ XML parser
long_description    TinyXML is a simple, small, C++ XML parser that can be\
                    easily integrating into other programs.\
                    This is TinyXML-1, which is deprecated.\
                    Please migrate to TinyXML-2 when practical.

homepage            https://sourceforge.net/projects/tinyxml/
master_sites        sourceforge:project/${name}/${name}/${version}

checksums           rmd160  162880af0cb1a284268cc18ec582f51c55120a76 \
                    sha256  ac6bb9501c6f50cc922d22f26b02fab168db47521be5e845b83d3451a3e1d512 \
                    size    290881

patchfiles          patch-tinyxml.h.diff
distname            ${name}_[strsed ${version} {g/\./_/}]
worksrcdir          ${name}
use_zip             yes

post-extract {
    copy ${filespath}/CMakeLists.txt ${worksrcpath}
    copy ${filespath}/tinyxml.pc ${worksrcpath}
    reinplace "s|@@PREFIX@@|${prefix}|g;s|@@VERSION@@|${version}|g" ${worksrcpath}/tinyxml.pc
}

livecheck.type      none
