-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbfgminer.rb
35 lines (31 loc) · 1.29 KB
/
bfgminer.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'formula'
class Bfgminer < Formula
homepage 'https://github.com/luke-jr/bfgminer'
head 'https://github.com/luke-jr/bfgminer.git', :branch => 'bfgminer'
url 'http://luke.dashjr.org/programs/bitcoin/files/bfgminer/5.1.0/bfgminer-5.1.0.zip'
sha1 '42ddaa11ee0bf21607222a93d3cc1210279e98f9'
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'libtool' => :build
depends_on 'pkg-config' => :build
depends_on 'uthash' => :build
depends_on 'curl'
depends_on 'jansson'
depends_on 'libmicrohttpd'
depends_on 'libevent'
depends_on 'libusb'
depends_on 'hidapi'
def install
system "NOSUBMODULES=1 ./autogen.sh"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"PKG_CONFIG_PATH=#{HOMEBREW_PREFIX}/opt/curl/lib/pkgconfig:#{HOMEBREW_PREFIX}/opt/jansson/lib/pkgconfig:#{HOMEBREW_PREFIX}/opt/libmicrohttpd/lib/pkgconfig:#{HOMEBREW_PREFIX}/opt/libusb/lib/pkgconfig:#{HOMEBREW_PREFIX}/opt/hidapi/lib/pkgconfig:#{HOMEBREW_PREFIX}/opt/libevent/lib/pkgconfig",
"--enable-scrypt",
"--enable-keccak",
"--enable-opencl"
system "make", "install"
end
test do
system "bfgminer"
end
end