2009-12-24 11:17:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libftdi < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://www.intra2net.com/en/developer/libftdi'
|
2013-08-08 16:00:31 +00:00
|
|
|
url 'http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.0.tar.bz2'
|
|
|
|
sha1 '5be76cfd7cd36c5291054638f7caf4137303386f'
|
2009-12-24 11:17:36 +00:00
|
|
|
|
2013-08-08 16:00:31 +00:00
|
|
|
depends_on 'cmake' => :build
|
2013-09-12 04:18:32 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-09-02 23:44:55 +00:00
|
|
|
depends_on 'libusb'
|
2013-09-12 04:18:32 +00:00
|
|
|
depends_on 'boost' => :optional
|
2009-12-24 11:17:36 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-22 04:48:36 +00:00
|
|
|
mkdir 'libftdi-build' do
|
2013-08-08 16:00:31 +00:00
|
|
|
system "cmake", "..", *std_cmake_args
|
2009-12-24 11:17:36 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|