/[gentoo-x86]/net-misc/bfgminer/bfgminer-4.2.0.ebuild
Gentoo

Contents of /net-misc/bfgminer/bfgminer-4.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jul 22 15:23:59 2014 UTC (5 years, 3 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove older unstable versions

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-4.2.0.ebuild,v 1.1 2014/06/12 14:35:32 blueness Exp $
4
5 EAPI=5
6
7 inherit eutils
8
9 DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
10 HOMEPAGE="https://bitcointalk.org/?topic=168174"
11 SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.txz -> ${P}.tar.xz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
16
17 # TODO: knc (needs i2c-tools header)
18 IUSE="+adl antminer avalon bfx bifury bitforce bfsb bigpic bitfury cpumining drillbit dualminer examples gridseed hardened hashbuster hashbuster2 hashfast icarus klondike +libusb littlefury lm_sensors metabank modminer nanofury ncurses +opencl proxy proxy_getwork proxy_stratum rockminer scrypt twinfury +udev unicode x6500 ztex"
19 REQUIRED_USE='
20 || ( antminer avalon bfsb bfx bifury bigpic bitforce bitfury cpumining drillbit dualminer gridseed hashbuster hashbuster2 hashfast icarus klondike littlefury metabank modminer nanofury opencl proxy twinfury x6500 ztex )
21 adl? ( opencl )
22 bfsb? ( bitfury )
23 bfx? ( bitfury libusb )
24 bigpic? ( bitfury )
25 drillbit? ( bitfury )
26 dualminer? ( icarus )
27 gridseed? ( scrypt )
28 hashbuster? ( bitfury )
29 hashbuster2? ( bitfury libusb )
30 klondike? ( libusb )
31 littlefury? ( bitfury )
32 lm_sensors? ( opencl )
33 metabank? ( bitfury )
34 nanofury? ( bitfury )
35 scrypt? ( || ( cpumining opencl ) )
36 twinfury? ( bitfury )
37 unicode? ( ncurses )
38 proxy? ( || ( proxy_getwork proxy_stratum ) )
39 proxy_getwork? ( proxy )
40 proxy_stratum? ( proxy )
41 x6500? ( libusb )
42 ztex? ( libusb )
43 '
44
45 DEPEND='
46 net-misc/curl
47 ncurses? (
48 sys-libs/ncurses[unicode?]
49 )
50 >=dev-libs/jansson-2
51 net-libs/libblkmaker
52 udev? (
53 virtual/udev
54 )
55 hashbuster? (
56 dev-libs/hidapi
57 )
58 libusb? (
59 virtual/libusb:1
60 )
61 lm_sensors? (
62 sys-apps/lm_sensors
63 )
64 nanofury? (
65 dev-libs/hidapi
66 )
67 proxy_getwork? (
68 net-libs/libmicrohttpd
69 )
70 proxy_stratum? (
71 dev-libs/libevent
72 )
73 '
74 RDEPEND="${DEPEND}
75 opencl? (
76 || (
77 virtual/opencl
78 virtual/opencl-sdk
79 dev-util/ati-stream-sdk
80 dev-util/ati-stream-sdk-bin
81 dev-util/amdstream
82 dev-util/amd-app-sdk
83 dev-util/amd-app-sdk-bin
84 dev-util/nvidia-cuda-sdk[opencl]
85 dev-util/intel-opencl-sdk
86 )
87 )
88 "
89 DEPEND="${DEPEND}
90 virtual/pkgconfig
91 >=dev-libs/uthash-1.9.7
92 sys-apps/sed
93 cpumining? (
94 amd64? (
95 >=dev-lang/yasm-1.0.1
96 )
97 x86? (
98 >=dev-lang/yasm-1.0.1
99 )
100 )
101 "
102
103 src_configure() {
104 local CFLAGS="${CFLAGS}"
105 local with_curses
106 use hardened && CFLAGS="${CFLAGS} -nopie"
107
108 if use ncurses; then
109 if use unicode; then
110 with_curses='--with-curses=ncursesw'
111 else
112 with_curses='--with-curses=ncurses'
113 fi
114 else
115 with_curses='--without-curses'
116 fi
117
118 CFLAGS="${CFLAGS}" \
119 econf \
120 --docdir="/usr/share/doc/${PF}" \
121 $(use_enable adl) \
122 $(use_enable antminer) \
123 $(use_enable avalon) \
124 $(use_enable bifury) \
125 $(use_enable bitforce) \
126 $(use_enable bfsb) \
127 $(use_enable bfx) \
128 $(use_enable bigpic) \
129 $(use_enable bitfury) \
130 $(use_enable cpumining) \
131 $(use_enable drillbit) \
132 $(use_enable dualminer) \
133 $(use_enable gridseed) \
134 $(use_enable hashbuster) \
135 $(use_enable hashbuster2 hashbusterusb) \
136 $(use_enable hashfast) \
137 $(use_enable icarus) \
138 $(use_enable klondike) \
139 $(use_enable littlefury) \
140 $(use_enable metabank) \
141 $(use_enable modminer) \
142 $(use_enable nanofury) \
143 $(use_enable opencl) \
144 $(use_enable rockminer) \
145 $(use_enable scrypt) \
146 $(use_enable twinfury) \
147 --with-system-libblkmaker \
148 $with_curses \
149 $(use_with udev libudev) \
150 $(use_with lm_sensors sensors) \
151 $(use_with proxy_getwork libmicrohttpd) \
152 $(use_with proxy_stratum libevent) \
153 $(use_enable x6500) \
154 $(use_enable ztex)
155 }
156
157 src_install() {
158 emake install DESTDIR="$D"
159 if ! use examples; then
160 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
161 fi
162 }

  ViewVC Help
Powered by ViewVC 1.1.20