blob: b3e164d44f9280c5c2f20643ff519d9bd7558407 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
|