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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jul 22 15:23:59 2014 UTC (4 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-3.5.10.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}.tbz2"
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 avalon bitforce bfsb bigpic bitfury cpumining examples hardened hashbuster icarus littlefury lm_sensors metabank modminer nanofury ncurses +opencl proxy proxy_getwork proxy_stratum scrypt +udev unicode x6500 ztex"
19 REQUIRED_USE='
20 || ( avalon bfsb bigpic bitforce bitfury cpumining hashbuster icarus littlefury metabank modminer nanofury opencl proxy x6500 ztex )
21 adl? ( opencl )
22 bfsb? ( bitfury )
23 bigpic? ( bitfury )
24 hashbuster? ( bitfury )
25 littlefury? ( bitfury )
26 lm_sensors? ( opencl )
27 metabank? ( bitfury )
28 nanofury? ( bitfury )
29 scrypt? ( || ( cpumining opencl ) )
30 unicode? ( ncurses )
31 proxy? ( || ( proxy_getwork proxy_stratum ) )
32 proxy_getwork? ( proxy )
33 proxy_stratum? ( proxy )
34 '
35
36 DEPEND='
37 net-misc/curl
38 ncurses? (
39 sys-libs/ncurses[unicode?]
40 )
41 >=dev-libs/jansson-2
42 net-libs/libblkmaker
43 udev? (
44 virtual/udev
45 )
46 hashbuster? (
47 dev-libs/hidapi
48 )
49 lm_sensors? (
50 sys-apps/lm_sensors
51 )
52 nanofury? (
53 dev-libs/hidapi
54 )
55 proxy_getwork? (
56 net-libs/libmicrohttpd
57 )
58 proxy_stratum? (
59 dev-libs/libevent
60 )
61 x6500? (
62 virtual/libusb:1
63 )
64 ztex? (
65 virtual/libusb:1
66 )
67 '
68 RDEPEND="${DEPEND}
69 opencl? (
70 || (
71 virtual/opencl
72 virtual/opencl-sdk
73 dev-util/ati-stream-sdk
74 dev-util/ati-stream-sdk-bin
75 dev-util/amdstream
76 dev-util/amd-app-sdk
77 dev-util/amd-app-sdk-bin
78 dev-util/nvidia-cuda-sdk[opencl]
79 dev-util/intel-opencl-sdk
80 )
81 )
82 "
83 DEPEND="${DEPEND}
84 virtual/pkgconfig
85 >=dev-libs/uthash-1.9.2
86 sys-apps/sed
87 cpumining? (
88 amd64? (
89 >=dev-lang/yasm-1.0.1
90 )
91 x86? (
92 >=dev-lang/yasm-1.0.1
93 )
94 )
95 "
96
97 src_configure() {
98 local CFLAGS="${CFLAGS}"
99 local with_curses
100 use hardened && CFLAGS="${CFLAGS} -nopie"
101
102 if use ncurses; then
103 if use unicode; then
104 with_curses='--with-curses=ncursesw'
105 else
106 with_curses='--with-curses=ncurses'
107 fi
108 else
109 with_curses='--without-curses'
110 fi
111
112 CFLAGS="${CFLAGS}" \
113 econf \
114 --docdir="/usr/share/doc/${PF}" \
115 $(use_enable adl) \
116 $(use_enable avalon) \
117 $(use_enable bitforce) \
118 $(use_enable bfsb) \
119 $(use_enable bigpic) \
120 $(use_enable bitfury) \
121 $(use_enable cpumining) \
122 $(use_enable hashbuster) \
123 $(use_enable icarus) \
124 $(use_enable littlefury) \
125 $(use_enable metabank) \
126 $(use_enable modminer) \
127 $(use_enable nanofury) \
128 $(use_enable opencl) \
129 $(use_enable scrypt) \
130 --with-system-libblkmaker \
131 $with_curses \
132 $(use_with udev libudev) \
133 $(use_with lm_sensors sensors) \
134 $(use_with proxy_getwork libmicrohttpd) \
135 $(use_with proxy_stratum libevent) \
136 $(use_enable x6500) \
137 $(use_enable ztex)
138 }
139
140 src_install() {
141 emake install DESTDIR="$D"
142 if ! use examples; then
143 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
144 fi
145 }

  ViewVC Help
Powered by ViewVC 1.1.20