Ticket #22867: Portfile

File Portfile, 2.8 KB (added by ranauei@…, 14 years ago)

Updated Portfile

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: Portfile 55049 2009-08-06 11:13:40Z snc@macports.org $
3
4PortSystem 1.0
5
6name              avrdude
7version           5.8
8revision          3
9categories        cross devel
10maintainers       bdmicro.com:bsd
11description       an Atmel AVR MCU programmer
12long_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.
17homepage          http://www.nongnu.org/avrdude/
18platforms         darwin
19master_sites      http://savannah.nongnu.org/download/avrdude/
20checksums         md5 d459dcf47fa7fc2a29a70d68ebff4886 \
21                  sha1 77198df91a7176bbdab19ef4a4caf0bdc5862c94 \
22                  rmd160 c8eb0675f84477d6b58f0e8dc0438e16ac0714db
23depends_lib       port:libusb-compat \
24                  port:ncurses \
25                  port:readline
26configure.args    --mandir=${prefix}/share/man
27patchfiles        patch-stk500v2.c.diff
28
29variant serjtag description {Add support for burning a bootloader into an arduino \
30                             without external programmer (FTDI bitbang mode)} {
31        depends_lib-append port:libftd2xx
32        patchfiles-append patch-Makefile.in.diff \
33                          patch-avr910.c.diff \
34                          patch-avrdude.conf.in.diff \
35                          patch-config_gram.y.diff \
36                          patch-lexer.l.diff \
37                          patch-ft245r.c.diff \
38                          patch-ft245r.h.diff \
39                          patch-serjtag.c.diff \
40                          patch-serjtag.h.diff
41        configure.cflags-append "-g -O2 -DSUPPORT_FT245R"
42        configure.env-append LIBS="-lftd2xx"
43}
44
45variant autoreset description {Add automatic reset feature using DTR or RTS pin \
46                               useful for arduino compatible boards} {
47        patchfiles-append patch-arduino.c.diff \
48                          patch-ser_avrdoper.c.diff \
49                          patch-ser_posix.c.diff \
50                          patch-ser_win32.c.diff \
51                          patch-serial.h.diff \
52                          patch-stk500.c.diff \
53                          patch-stk500.h.diff
54}
55
56post-activate {
57    if {[variant_isset serjtag]} {
58        ui_msg "\n
59    Remember to unload FTDI VCP driver before using ftdi bitbang mode:
60   
61        sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext\n"
62    }
63    if {[variant_isset autoreset]} {
64        ui_msg "\n
65    Use arduino type programmer (-c arduino) to enable autoreset feature.\n\n"
66    }
67}