Created
April 3, 2013 06:00
-
-
Save ziodave/5298789 to your computer and use it in GitHub Desktop.
cgminer formula that works on MacBook Pro.
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
require 'formula' | |
class Cgminer < Formula | |
homepage 'https://github.com/ckolivas/cgminer' | |
url 'https://github.com/ckolivas/cgminer/archive/v2.11.0.tar.gz' | |
sha1 '56f7d2bed9b51a3a9b6cafacb09c10de552f5e82' | |
version '2.11' | |
depends_on 'automake' => :build | |
depends_on 'curl' | |
depends_on 'c-ares' | |
depends_on 'libusb' | |
depends_on 'pkg-config' => :build | |
def install | |
ENV['NOCONFIGURE'] = '1' | |
system "./autogen.sh" | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--prefix=#{prefix}", | |
"--enable-cpumining", | |
"--disable-opencl", | |
"--disable-adl" | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment