# -*- 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               cmake 1.1
PortGroup               github 1.0

github.setup            avrdudes avrdude 8.3 v
github.tarball_from     archive

categories              cross devel
license                 GPL-2+
homepage                https://avrdude.nongnu.org
maintainers             nomaintainer

description             AVR Downloader Uploader
long_description        AVRDUDE - AVR Downloader Uploader - is a program for \
                        downloading and uploading the on-chip memories of \
                        Microchip’s AVR microcontrollers.  It can program the \
                        Flash and EEPROM, and where supported by the \
                        programming protocol, it can program fuse and lock \
                        bits.  AVRDUDE also supplies a direct instruction mode \
                        allowing one to issue any programming instruction to \
                        the AVR chip regardless of whether AVRDUDE implements \
                        that specific feature of a particular chip.

depends_build-append    port:bison \
                        port:flex

depends_lib-append      port:hidapi \
                        port:libelf \
                        port:libftdi1 \
                        port:libserialport \
                        port:libusb \
                        port:python314 \
                        port:readline \
                        port:swig-python

checksums               rmd160  640ff20d3a2afe1e5294771428b286f01ac5e9cf \
                        sha256  6c6fe3606f2ef331e502fb9c1d418ba09eb9705e811efbe18259025a9787ee3d \
                        size    6567062

# Target "cmTC_6e3dd" requires the language dialect "C11"
compiler.c_standard 2011

variant doc \
        description {Install documentation} {
    depends_build-append    port:texi2html \
                            port:texinfo
    configure.args-append   -DBUILD_DOC=ON
}
