# $Id: Portfile 86283 2011-10-24 11:11:46Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           archcheck 1.0

name                avarice
version             2.11
categories          cross
maintainers         nomaintainer
description         AVR JTAG-ICE control software
long_description \
    AVaRICE is a program which interfaces the GNU Debugger \
    GDB with the AVR JTAG ICE available from Atmel.
platforms           darwin
homepage            http://avarice.sourceforge.net/
master_sites        sourceforge:project/avarice/avarice/avarice-${version}

use_bzip2           yes

checksums           rmd160  e7c6b693092b5a5a838040e2518ae4349d6d754e \
                    sha256  69c27998e4a2dbade1478bbce42e60df697baf79344f85c3b0f43a43c6ac8b86

depends_lib         port:gettext port:libusb-compat port:zlib \
                    port:avr-binutils

archcheck.files     lib/libintl.dylib \
                    lib/libusb.dylib \
                    lib/libz.dylib

configure.args      --mandir=${prefix}/share/man
configure.ldflags-append    -lz \
                            -L${prefix}/avr/host/lib -lbfd -liberty
configure.cppflags-append -I${prefix}/avr/host/include

livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
