aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libftdi0.rb
diff options
context:
space:
mode:
authorJack Nagel2013-09-04 16:15:20 -0500
committerJack Nagel2013-09-04 16:15:20 -0500
commit16461a16ebda38e398f4ca605eb9e77be81a72ea (patch)
tree8fdbeda9de52cfcd97c1c44e1f0c4f91a1555bc3 /Library/Formula/libftdi0.rb
parentf0427846d89683dbf8ad376f6086c1808b1b455a (diff)
downloadhomebrew-16461a16ebda38e398f4ca605eb9e77be81a72ea.tar.bz2
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.
Diffstat (limited to 'Library/Formula/libftdi0.rb')
-rw-r--r--Library/Formula/libftdi0.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/libftdi0.rb b/Library/Formula/libftdi0.rb
new file mode 100644
index 000000000..edee3715f
--- /dev/null
+++ b/Library/Formula/libftdi0.rb
@@ -0,0 +1,17 @@
+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