# -*- 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
# $Id: Portfile 102553 2013-02-04 20:42:17Z larryv@macports.org $

PortSystem          1.0

name                dfu-util
version             0.7
categories          cross devel
platforms           darwin
maintainers         gmail.com:benoit.triquet openmaintainer
license             GPL-2+

description         Device firmware update (DFU) USB programmer

long_description    dfu-util is the host side implementation of the DFU 1.0 and DFU 1.1 specifications of the USB forum. DFU is intended to download and upload firmware to devices connected over USB. It ranges from small devices like micro-controller boards up to mobile phones. Using dfu-util you can download firmware to your DFU-enabled device or upload firmware from it. dfu-util has been tested with the Openmoko Neo1973 and Freerunner and many other devices.

homepage            http://dfu-util.gnumonks.org/
master_sites        ${homepage}releases/
#fetch.type          git
#git.url             git://gitorious.org/dfu-util/dfu-util.git

checksums           rmd160  483974409743b3a69e4b5fb77cefd20b28b6f6d5 \
                    sha256  f52a2a5489fbf9f3204a6ada05e0b47ee322e19d81c712e0c58a332d80ec3eab

depends_build       port:pkgconfig

depends_lib         port:libusb

livecheck.type      regex
livecheck.regex     >${name}-(\\d+\\.\\d+)${extract.suffix}<
