Created
September 28, 2015 16:28
-
-
Save tzudot/39d53fd7414d58f38583 to your computer and use it in GitHub Desktop.
Homebrew formula for installing libtorrent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Libtorrent < Formula | |
desc "BitTorrent library" | |
homepage "https://github.com/rakshasa/libtorrent" | |
url "http://rtorrent.net/downloads/libtorrent-0.13.6.tar.gz" | |
sha256 "2838a08c96edfd936aff8fbf99ecbb930c2bfca3337dd1482eb5fccdb80d5a04" | |
depends_on "pkg-config" => :build | |
depends_on "libtool" => :build | |
depends_on "openssl" | |
def install | |
ENV.libstdcxx if ENV.compiler == :clang | |
system "./configure", "--prefix=#{prefix}", | |
"--disable-debug", | |
"--disable-dependency-tracking", | |
"--with-kqueue", | |
"--enable-ipv6" | |
system "make" | |
system "make", "install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment