homebrew-core/Formula/libftdi0.rb
Jack Nagel f4902e7560 Add libftdi0
As it turns out, *nothing* in Homebrew that depends on libftdi is
compatible with libftdi 1.0.

avrdude doesn't even have a configure option for it, but will attempt to
link with it if libusb is also present.

lcdproc has a configure option, but instead of erroring out if it's not
found, it just silently compiles without it.

Rather than revert and wait (possibly forever) for these things to be
updated to the new library, I'm just adding the older version. It
installs alongside libftdi 1.0 without any conflicts.
2013-09-04 16:15:20 -05:00

17 lines
426 B
Ruby

require 'formula'
class Libftdi0 < Formula
homepage 'http://www.intra2net.com/en/developer/libftdi'
url "http://www.intra2net.com/en/developer/libftdi/download/libftdi-0.20.tar.gz"
sha1 '4bc6ce70c98a170ada303fbd00b8428d8a2c1aa2'
depends_on 'libusb-compat'
def install
mkdir 'libftdi-build' do
system "../configure", "--prefix=#{prefix}"
system "make"
system "make install"
end
end
end