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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Jul 22 15:23:59 2014 UTC (4 years ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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 blueness 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 blueness 1.3 # $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-3.10.2.ebuild,v 1.2 2014/06/06 11:23:47 blueness Exp $
4 blueness 1.1
5 blueness 1.2 EAPI=5
6 blueness 1.1
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 antminer avalon bifury bitforce bfsb bigpic bitfury cpumining drillbit examples hardened hashbuster hashbuster2 hashfast icarus klondike +libusb littlefury lm_sensors metabank modminer nanofury ncurses +opencl proxy proxy_getwork proxy_stratum scrypt twinfury +udev unicode x6500 ztex"
19     REQUIRED_USE='
20     || ( antminer avalon bfsb bifury bigpic bitforce bitfury cpumining drillbit hashbuster hashbuster2 hashfast icarus klondike littlefury metabank modminer nanofury opencl proxy twinfury x6500 ztex )
21     adl? ( opencl )
22     bfsb? ( bitfury )
23     bigpic? ( bitfury )
24     drillbit? ( bitfury )
25     hashbuster? ( bitfury )
26     hashbuster2? ( bitfury libusb )
27     klondike? ( libusb )
28     littlefury? ( bitfury )
29     lm_sensors? ( opencl )
30     metabank? ( bitfury )
31     nanofury? ( bitfury )
32     scrypt? ( || ( cpumining opencl ) )
33     twinfury? ( bitfury )
34     unicode? ( ncurses )
35     proxy? ( || ( proxy_getwork proxy_stratum ) )
36     proxy_getwork? ( proxy )
37     proxy_stratum? ( proxy )
38     x6500? ( libusb )
39     ztex? ( libusb )
40     '
41    
42     DEPEND='
43     net-misc/curl
44     ncurses? (
45     sys-libs/ncurses[unicode?]
46     )
47     >=dev-libs/jansson-2
48     net-libs/libblkmaker
49     udev? (
50     virtual/udev
51     )
52     hashbuster? (
53     dev-libs/hidapi
54     )
55     libusb? (
56     virtual/libusb:1
57     )
58     lm_sensors? (
59     sys-apps/lm_sensors
60     )
61     nanofury? (
62     dev-libs/hidapi
63     )
64     proxy_getwork? (
65     net-libs/libmicrohttpd
66     )
67     proxy_stratum? (
68     dev-libs/libevent
69     )
70     '
71     RDEPEND="${DEPEND}
72     opencl? (
73     || (
74     virtual/opencl
75     virtual/opencl-sdk
76     dev-util/ati-stream-sdk
77     dev-util/ati-stream-sdk-bin
78     dev-util/amdstream
79     dev-util/amd-app-sdk
80     dev-util/amd-app-sdk-bin
81     dev-util/nvidia-cuda-sdk[opencl]
82     dev-util/intel-opencl-sdk
83     )
84     )
85     "
86     DEPEND="${DEPEND}
87     virtual/pkgconfig
88     >=dev-libs/uthash-1.9.7
89     sys-apps/sed
90     cpumining? (
91     amd64? (
92     >=dev-lang/yasm-1.0.1
93     )
94     x86? (
95     >=dev-lang/yasm-1.0.1
96     )
97     )
98     "
99    
100     src_configure() {
101     local CFLAGS="${CFLAGS}"
102     local with_curses
103     use hardened && CFLAGS="${CFLAGS} -nopie"
104    
105     if use ncurses; then
106     if use unicode; then
107     with_curses='--with-curses=ncursesw'
108     else
109     with_curses='--with-curses=ncurses'
110     fi
111     else
112     with_curses='--without-curses'
113     fi
114    
115     CFLAGS="${CFLAGS}" \
116     econf \
117     --docdir="/usr/share/doc/${PF}" \
118     $(use_enable adl) \
119     $(use_enable antminer) \
120     $(use_enable avalon) \
121     $(use_enable bifury) \
122     $(use_enable bitforce) \
123     $(use_enable bfsb) \
124     $(use_enable bigpic) \
125     $(use_enable bitfury) \
126     $(use_enable cpumining) \
127     $(use_enable drillbit) \
128     $(use_enable hashbuster) \
129     $(use_enable hashbuster2 hashbusterusb) \
130     $(use_enable hashfast) \
131     $(use_enable icarus) \
132     $(use_enable klondike) \
133     $(use_enable littlefury) \
134     $(use_enable metabank) \
135     $(use_enable modminer) \
136     $(use_enable nanofury) \
137     $(use_enable opencl) \
138     $(use_enable scrypt) \
139     $(use_enable twinfury) \
140     --with-system-libblkmaker \
141     $with_curses \
142     $(use_with udev libudev) \
143     $(use_with lm_sensors sensors) \
144     $(use_with proxy_getwork libmicrohttpd) \
145     $(use_with proxy_stratum libevent) \
146     $(use_enable x6500) \
147     $(use_enable ztex)
148     }
149    
150     src_install() {
151     emake install DESTDIR="$D"
152     if ! use examples; then
153     rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
154     fi
155     }

  ViewVC Help
Powered by ViewVC 1.1.20