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

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         XML-Parser 2.56 ../../authors/id/T/TO/TODDR
revision            0
license             {Artistic-1 GPL}
maintainers         nomaintainer
categories-append   textproc
description         XML::Parser - A perl module for parsing XML documents
long_description    {*}${description}

checksums           rmd160  988ee98cc94e2577399bd40051ec24deb43ecf89 \
                    sha256  a78bfcd3834fde7411acee2f5fcd74deeecfbaa8cee86f16c33c42dde2fd8fff \
                    size    319278

if {${perl5.major} ne ""} {
    depends_build-append \
                    port:p${perl5.major}-file-sharedir-install

    depends_lib-append \
                    port:expat \
                    port:p${perl5.major}-file-sharedir

    patchfiles      _findcc.patch

    if {${os.platform} eq "darwin" && [vercmp ${macosx_deployment_target} < 10.5]} {
        patchfiles-append \
                    no-rpath.patch
    }

    configure.post_args-append \
                    EXPATLIBPATH=${prefix}/lib \
                    EXPATINCPATH=${prefix}/include
}
