Skip to content

Instantly share code, notes, and snippets.

@tzudot
Created September 28, 2015 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzudot/39d53fd7414d58f38583 to your computer and use it in GitHub Desktop.
Save tzudot/39d53fd7414d58f38583 to your computer and use it in GitHub Desktop.
Homebrew formula for installing libtorrent
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