Skip to content

Instantly share code, notes, and snippets.

@ziodave
Created April 3, 2013 06:00
Show Gist options
  • Save ziodave/5298789 to your computer and use it in GitHub Desktop.
Save ziodave/5298789 to your computer and use it in GitHub Desktop.
cgminer formula that works on MacBook Pro.
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