Ticket #23120: Portfile

File Portfile, 2.1 KB (added by ranauei@…, 14 years ago)
Line 
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
4PortSystem 1.0
5
6set svn_tag       881
7
8name              avrdude-devel
9version           5.8-r${svn_tag}
10categories        cross devel
11maintainers       gmail.com:ranauei
12description       an Atmel AVR MCU programmer
13long_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.
19homepage          http://www.nongnu.org/avrdude/
20platforms         darwin
21worksrcdir        avrdude
22fetch.type        svn
23svn.url           svn://svn.sv.gnu.org/avrdude/trunk/avrdude
24svn.tag           ${svn_tag}
25depends_lib       port:libusb-compat \
26                  port:ncurses \
27                  port:readline
28
29use_autoreconf    yes
30
31configure.args    --mandir=${prefix}/share/man
32patchfiles        patch-stk500v2.c.diff
33
34variant 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
49post-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}