# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 78875 2011-05-25 12:18:16Z snc@macports.org $

PortSystem          1.0

name                libftdi
version             0.19
categories          devel
license             GPL-2+
maintainers         snc openmaintainer
description         A library to talk to FTDI chips
long_description    A library to talk to FTDI chips: \
                    FT232BM/245BM, FT2232C/D and FT232/245R \
                    using libusb, including the popular bitbang mode. \
                    The license is LGPL.
homepage            http://www.intra2net.com/de/produkte/opensource/ftdi
platforms           darwin
master_sites        http://www.intra2net.com/de/produkte/opensource/ftdi/TGZ/

depends_lib         port:libusb-compat

checksums           sha1    0f08caf8e754ace69cd682489fae3f7f09920fe1 \
                    rmd160  2c2c8006aed7d9e789549b571fbe9d1ae190f5a1

patch {
    reinplace "s|struct ftdi_context \\*ftdi_new()|struct ftdi_context *ftdi_new(void)|" \
        ${worksrcpath}/src/ftdi.h ${worksrcpath}/src/ftdi.c
}
