# -*- 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         PGPLOT 2.35
revision            0
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         PGPLOT - allow subroutines in the PGPLOT graphics library to be called from Perl.
long_description    {*}${description}

checksums           rmd160  c8e443a2ed2013f2a88c40baba6e9febafe0ba64 \
                    sha256  89d18b0157f26c309197411912361357b66e19f978556d0e181019dce754ea3c \
                    size    185017

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-devel-checklib \
                    port:p${perl5.major}-extutils-pkgconfig

    depends_lib-append \
                    port:p${perl5.major}-extutils-f77 \
                    port:libpng \
                    port:pgplot \
                    port:xorg-libX11 \
                    port:zlib

    patchfiles      patch-Makefile.PL.diff

    post-patch {
        reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile.PL
    }
}
