Ticket #20526: Portfile

File Portfile, 2.2 KB (added by ranauei@…, 15 years ago)

added proper port dependency for libftd2xx

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 54147 2009-07-21 23:52:48Z brett@macports.org $
3
4PortSystem 1.0
5
6name              avrdude
7version           5.8
8revision          2
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 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
44post-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}