# -*- 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.47
revision            0
license             {Artistic-1 GPL}
maintainers         nomaintainer
categories-append   textproc
description         This is a Perl extension interface to expat.
long_description    A perl module for parsing XML documents using expat.

checksums           rmd160  f8c36ff76e98fd6d1c6cc41915396c521426142e \
                    sha256  ad4aae643ec784f489b956abe952432871a622d4e2b5c619e8855accbfc4d1d8 \
                    size    279029

if {${perl5.major} ne ""} {
    depends_lib-append \
                    port:expat \
                    port:p${perl5.major}-libwww-perl

    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
}
