# -*- 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         Net-LibIDN 0.12
revision            5
license             {Artistic-1 GPL}
maintainers         oaf.dk:mni
description         Perl bindings for GNU Libidn
long_description    Net::LibIDN is bindings for GNU Libidn, which is an \
                    implementation of the Stringprep, Punycode and IDNA \
                    specifications defined by the IETF Internationalized \
                    Domain Names (IDN) working group.

checksums           rmd160  a595c3758c9577b6d09d856cf220c303fdc3d2a2 \
                    sha256  2f8acc9442b3866ec7dc63cd449fc693ae3e930d5d3e5e9430fbb6f393bdbb17 \
                    size    14262

platforms           darwin

if {${perl5.major} != ""} {
depends_lib-append  port:libidn

patchfiles-append   patch-Makefile.PL.diff

post-patch {
    reinplace "s|@CC@|${configure.cc} [get_canonical_archflags cc]|g" ${worksrcpath}/Makefile.PL
}

configure.args-append   --with-libidn=${prefix}/lib \
                        --with-libidn-inc=${prefix}/include
}
