1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 54147 2009-07-21 23:52:48Z brett@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name avrdude |
---|
7 | version 5.8 |
---|
8 | revision 2 |
---|
9 | categories cross devel |
---|
10 | maintainers bdmicro.com:bsd |
---|
11 | description an Atmel AVR MCU programmer |
---|
12 | long_description AVRDUDE: AVR Downloader/UploaDEr - is a program for \ |
---|
13 | updating the flash, eeprom, fuse, and lock bit memories \ |
---|
14 | of Atmel AVR microcontrollers. It operations with \ |
---|
15 | several popular programmers including the STK500, \ |
---|
16 | JTAGICE MkII, AVRISP, and others. |
---|
17 | homepage http://www.nongnu.org/avrdude/ |
---|
18 | platforms darwin |
---|
19 | master_sites http://savannah.nongnu.org/download/avrdude/ |
---|
20 | checksums md5 d459dcf47fa7fc2a29a70d68ebff4886 \ |
---|
21 | sha1 77198df91a7176bbdab19ef4a4caf0bdc5862c94 \ |
---|
22 | rmd160 c8eb0675f84477d6b58f0e8dc0438e16ac0714db |
---|
23 | depends_lib port:libusb-compat \ |
---|
24 | port:ncurses \ |
---|
25 | port:readline |
---|
26 | configure.args --mandir=${prefix}/share/man |
---|
27 | patchfiles patch-stk500v2.c.diff |
---|
28 | |
---|
29 | variant serjtag description {Add support for burning a bootloader into an arduino without external programmer (FTDI bitbang mode)} { |
---|
30 | depends_lib-append port:libftd2xx |
---|
31 | patchfiles-append patch-Makefile.in.diff \ |
---|
32 | patch-avr910.c.diff \ |
---|
33 | patch-avrdude.conf.in.diff \ |
---|
34 | patch-config_gram.y.diff \ |
---|
35 | patch-lexer.l.diff \ |
---|
36 | patch-ft245r.c.diff \ |
---|
37 | patch-ft245r.h.diff \ |
---|
38 | patch-serjtag.c.diff \ |
---|
39 | patch-serjtag.h.diff |
---|
40 | configure.cflags-append "-g -O2 -DSUPPORT_FT245R" |
---|
41 | configure.env-append LIBS="-lftd2xx" |
---|
42 | } |
---|
43 | |
---|
44 | post-activate { |
---|
45 | if {[variant_isset serjtag]} { |
---|
46 | ui_msg "" |
---|
47 | ui_msg "Rember to unload FTDI VCP driver before use avrdude with ftdi bitbang mode." |
---|
48 | ui_msg "use sudo kextunlod /System/Library/Extensions/FTDIUSBSerialDriver.kext" |
---|
49 | ui_msg "" |
---|
50 | } |
---|
51 | } |
---|