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

name                pcsc-tools
version             1.7.4
revision            0
checksums           rmd160  8e4e509306ee2f2d052d3d555e53d4a06f791e50 \
                    sha256  f4588a95d7b2dbd6cdc0e1bc3519db176ccae15ed4592d9406910781e2df4845 \
                    size    412166

categories          sysutils
license             GPL-2+
maintainers         nomaintainer

description         Tools for accessing PC/SC driver, card or reader.
long_description    These tools are used to test a PC/SC driver, card or \
                    reader or send commands in a friendly environment (text \
                    or graphical user interface).

homepage            https://pcsc-tools.apdu.fr
master_sites        ${homepage}
use_bzip2           yes

perl5.require_variant   true
perl5.conflict_variants true
perl5.branches          5.28 5.30 5.32 5.34
perl5.default_branch    5.34
perl5.create_variants   ${perl5.branches}

depends_build       port:gettext \
                    port:pkgconfig

depends_lib         port:gettext-runtime \
                    port:p${perl5.major}-glib \
                    port:p${perl5.major}-gtk3 \
                    port:p${perl5.major}-libintl-perl \
                    port:p${perl5.major}-chipcard-pcsc

post-patch {
    reinplace -W ${worksrcpath} "s|^#!/usr/bin/env perl|#!${perl5.bin}|g" ATR_analysis.in gscriptor scriptor
}

configure.args      --disable-silent-rules
