# -*- 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.57 ../../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  fd669de7c4f166a2c2bb83a1e6a745eb414121d0 \
                    sha256  a846bf77032e953e8344989780fa6a885e2a5226ebcaa93dae1d3df9b184e9cf \
                    size    452146

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
}
