# -*- 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           gitlab 1.0
PortGroup           legacysupport 1.1
PortGroup           makefile 1.0

# strndup
legacysupport.newest_darwin_requires_legacy 10

gitlab.setup        DavidGriffith minipro 0.7.4
revision            0
categories          devel
maintainers         openmaintainer {krischik @krischik}
license             GPL-3
description         Utility for the MiniPRO TL866CS, TL866A and T56 universal programmers
long_description    Opensource tool that aims to create a complete cross-platform \
                    replacement for the proprietary utility from autoelectric.cn. \
                    Currently it supports more than 13000 of target devices including \
                    AVRs, PICs as well as a huge number of other microcontrollers \
                    and various BIOSes.
checksums           rmd160  6a84e261bbd7ed4cf13e1290310a1be8bcbbd4d3 \
                    sha256  cac2f3239f50aea70a54fb4f8a5de3c87caba7f377c3cd51a417c1bc7a042921 \
                    size    346583

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         path:lib/pkgconfig/libusb-1.0.pc:libusb

depends_run         port:srecord

variant universal   {}

# https://trac.macports.org/ticket/72264
# prom.c:306: error: ‘for’ loop initial declaration used outside C99 mode
compiler.c_standard 1999
configure.cflags-append \
                    -std=c99
