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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | set svn_tag 881 |
---|
7 | |
---|
8 | name avrdude-devel |
---|
9 | version 5.8-r${svn_tag} |
---|
10 | categories cross devel |
---|
11 | maintainers gmail.com:ranauei |
---|
12 | description an Atmel AVR MCU programmer |
---|
13 | long_description AVRDUDE: AVR Downloader/UploaDEr - is a program for \ |
---|
14 | updating the flash, eeprom, fuse, and lock bit memories \ |
---|
15 | of Atmel AVR microcontrollers. It operations with several \ |
---|
16 | popular programmers including the STK500, JTAGICE MkII, \ |
---|
17 | AVRISP, and others. Added in svn: auto-reset for Arduino \ |
---|
18 | like boards and support for The Bus Pirate. |
---|
19 | homepage http://www.nongnu.org/avrdude/ |
---|
20 | platforms darwin |
---|
21 | worksrcdir avrdude |
---|
22 | fetch.type svn |
---|
23 | svn.url svn://svn.sv.gnu.org/avrdude/trunk/avrdude |
---|
24 | svn.tag ${svn_tag} |
---|
25 | depends_lib port:libusb-compat \ |
---|
26 | port:ncurses \ |
---|
27 | port:readline |
---|
28 | |
---|
29 | use_autoreconf yes |
---|
30 | |
---|
31 | configure.args --mandir=${prefix}/share/man |
---|
32 | patchfiles patch-stk500v2.c.diff |
---|
33 | |
---|
34 | variant serjtag description {Add support for burning a bootloader into an arduino without external programmer (FTDI bitbang mode)} { |
---|
35 | depends_lib-append port:libftd2xx |
---|
36 | patchfiles-append patch-Makefile.am.diff \ |
---|
37 | patch-avr910.c.diff \ |
---|
38 | patch-avrdude.conf.in.diff \ |
---|
39 | patch-config_gram.y.diff \ |
---|
40 | patch-lexer.l.diff \ |
---|
41 | patch-ft245r.c.diff \ |
---|
42 | patch-ft245r.h.diff \ |
---|
43 | patch-serjtag.c.diff \ |
---|
44 | patch-serjtag.h.diff |
---|
45 | configure.cflags-append "-g -O2 -DSUPPORT_FT245R" |
---|
46 | configure.env-append LIBS="-lftd2xx" |
---|
47 | } |
---|
48 | |
---|
49 | post-activate { |
---|
50 | if {[variant_isset serjtag]} { |
---|
51 | ui_msg "\n |
---|
52 | Remember to unload FTDI VCP driver before using avrdude with ftdi |
---|
53 | bitbang mode: |
---|
54 | |
---|
55 | sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext\n" |
---|
56 | } |
---|
57 | } |
---|