homebrew-core/Formula/libtorrent-rasterbar.rb
2014-03-16 08:40:46 -05:00

20 lines
731 B
Ruby

require 'formula'
class LibtorrentRasterbar < Formula
homepage 'http://www.rasterbar.com/products/libtorrent/'
url 'https://downloads.sourceforge.net/project/libtorrent/libtorrent/libtorrent-rasterbar-0.16.15.tar.gz'
sha1 '8657a493fb2ee4e6bf55e484deb922d23b65818d'
depends_on 'pkg-config' => :build
depends_on 'boost'
depends_on 'openssl' if MacOS.version <= :snow_leopard # Needs a newer version of OpenSSL on Snow Leopard
def install
boost = Formula["boost"]
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-boost=#{boost.opt_prefix}"
system "make install"
end
end