summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-08-22 02:10:20 +0000
committerAnthony G. Basile <blueness@gentoo.org>2012-08-22 02:10:20 +0000
commit523b190ed29e1f974321e55b42a452d7c1f388c1 (patch)
treeab19c909716719bd122719dbe469c8674361518b /net-misc/bfgminer
parentadded prefix keywords (diff)
downloadgentoo-2-523b190ed29e1f974321e55b42a452d7c1f388c1.tar.gz
gentoo-2-523b190ed29e1f974321e55b42a452d7c1f388c1.tar.bz2
gentoo-2-523b190ed29e1f974321e55b42a452d7c1f388c1.zip
Version bumps
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/bfgminer')
-rw-r--r--net-misc/bfgminer/ChangeLog12
-rw-r--r--net-misc/bfgminer/bfgminer-2.3.6.ebuild11
-rw-r--r--net-misc/bfgminer/bfgminer-2.4.4.ebuild11
-rw-r--r--net-misc/bfgminer/bfgminer-2.5.0.ebuild11
-rw-r--r--net-misc/bfgminer/bfgminer-2.5.3.ebuild11
-rw-r--r--net-misc/bfgminer/bfgminer-2.6.1.ebuild11
-rw-r--r--net-misc/bfgminer/bfgminer-2.6.3.ebuild13
-rw-r--r--net-misc/bfgminer/bfgminer-2.6.4.ebuild123
-rw-r--r--net-misc/bfgminer/bfgminer-2.6.5.ebuild126
-rw-r--r--net-misc/bfgminer/bfgminer-2.7.0.ebuild126
10 files changed, 423 insertions, 32 deletions
diff --git a/net-misc/bfgminer/ChangeLog b/net-misc/bfgminer/ChangeLog
index 395570d129b1..f6129ac3499e 100644
--- a/net-misc/bfgminer/ChangeLog
+++ b/net-misc/bfgminer/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for net-misc/bfgminer
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v 1.20 2012/08/11 20:35:06 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v 1.21 2012/08/22 02:10:20 blueness Exp $
+
+*bfgminer-2.7.0 (21 Aug 2012)
+*bfgminer-2.6.5 (21 Aug 2012)
+*bfgminer-2.6.4 (21 Aug 2012)
+
+ 21 Aug 2012; Anthony G. Basile <blueness@gentoo.org> bfgminer-2.3.6.ebuild,
+ bfgminer-2.4.4.ebuild, bfgminer-2.5.0.ebuild, bfgminer-2.5.3.ebuild,
+ bfgminer-2.6.1.ebuild, bfgminer-2.6.3.ebuild, +bfgminer-2.6.4.ebuild,
+ +bfgminer-2.6.5.ebuild, +bfgminer-2.7.0.ebuild:
+ Version bumps
11 Aug 2012; Agostino Sarubbo <ago@gentoo.org> bfgminer-2.5.0.ebuild:
Stable for amd64, wrt bug #430210
diff --git a/net-misc/bfgminer/bfgminer-2.3.6.ebuild b/net-misc/bfgminer/bfgminer-2.3.6.ebuild
index 71963d3f8c2e..2a6aac6640fb 100644
--- a/net-misc/bfgminer/bfgminer-2.3.6.ebuild
+++ b/net-misc/bfgminer/bfgminer-2.3.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.3.6.ebuild,v 1.4 2012/06/16 09:03:02 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.3.6.ebuild,v 1.5 2012/08/22 02:10:20 blueness Exp $
EAPI="4"
@@ -38,16 +38,17 @@ DEPEND="
virtual/libusb:1
)
"
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
DEPEND="${DEPEND}
virtual/pkgconfig
sys-apps/sed
adl? (
x11-libs/amd-adl-sdk
)
- opencl? (
- virtual/opencl
- )
sse2? (
>=dev-lang/yasm-1.0.1
)
diff --git a/net-misc/bfgminer/bfgminer-2.4.4.ebuild b/net-misc/bfgminer/bfgminer-2.4.4.ebuild
index 4817d72c7521..dd4b66cfa439 100644
--- a/net-misc/bfgminer/bfgminer-2.4.4.ebuild
+++ b/net-misc/bfgminer/bfgminer-2.4.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.4.4.ebuild,v 1.1 2012/07/06 18:18:32 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.4.4.ebuild,v 1.2 2012/08/22 02:10:20 blueness Exp $
EAPI="4"
@@ -38,16 +38,17 @@ DEPEND="
virtual/libusb:1
)
"
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
DEPEND="${DEPEND}
virtual/pkgconfig
sys-apps/sed
adl? (
x11-libs/amd-adl-sdk
)
- opencl? (
- virtual/opencl
- )
sse2? (
>=dev-lang/yasm-1.0.1
)
diff --git a/net-misc/bfgminer/bfgminer-2.5.0.ebuild b/net-misc/bfgminer/bfgminer-2.5.0.ebuild
index e9494c0c3f0b..da7f6fb2d32d 100644
--- a/net-misc/bfgminer/bfgminer-2.5.0.ebuild
+++ b/net-misc/bfgminer/bfgminer-2.5.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.5.0.ebuild,v 1.4 2012/08/11 20:35:06 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.5.0.ebuild,v 1.5 2012/08/22 02:10:20 blueness Exp $
EAPI="4"
@@ -38,16 +38,17 @@ DEPEND="
virtual/libusb:1
)
"
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
DEPEND="${DEPEND}
virtual/pkgconfig
sys-apps/sed
adl? (
x11-libs/amd-adl-sdk
)
- opencl? (
- virtual/opencl
- )
sse2? (
>=dev-lang/yasm-1.0.1
)
diff --git a/net-misc/bfgminer/bfgminer-2.5.3.ebuild b/net-misc/bfgminer/bfgminer-2.5.3.ebuild
index a46dbfd7a4a5..7f8f749dc526 100644
--- a/net-misc/bfgminer/bfgminer-2.5.3.ebuild
+++ b/net-misc/bfgminer/bfgminer-2.5.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.5.3.ebuild,v 1.2 2012/08/06 16:02:58 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.5.3.ebuild,v 1.3 2012/08/22 02:10:20 blueness Exp $
EAPI="4"
@@ -37,16 +37,17 @@ DEPEND="
virtual/libusb:1
)
"
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
DEPEND="${DEPEND}
virtual/pkgconfig
sys-apps/sed
adl? (
x11-libs/amd-adl-sdk
)
- opencl? (
- virtual/opencl
- )
sse2? (
>=dev-lang/yasm-1.0.1
)
diff --git a/net-misc/bfgminer/bfgminer-2.6.1.ebuild b/net-misc/bfgminer/bfgminer-2.6.1.ebuild
index ec8ded973433..dbf26f79a5aa 100644
--- a/net-misc/bfgminer/bfgminer-2.6.1.ebuild
+++ b/net-misc/bfgminer/bfgminer-2.6.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.6.1.ebuild,v 1.2 2012/08/06 16:02:58 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.6.1.ebuild,v 1.3 2012/08/22 02:10:20 blueness Exp $
EAPI="4"
@@ -38,16 +38,17 @@ DEPEND="
virtual/libusb:1
)
"
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
DEPEND="${DEPEND}
virtual/pkgconfig
sys-apps/sed
adl? (
x11-libs/amd-adl-sdk
)
- opencl? (
- virtual/opencl
- )
sse2? (
>=dev-lang/yasm-1.0.1
)
diff --git a/net-misc/bfgminer/bfgminer-2.6.3.ebuild b/net-misc/bfgminer/bfgminer-2.6.3.ebuild
index 9cfd617d7221..f6d66d11379d 100644
--- a/net-misc/bfgminer/bfgminer-2.6.3.ebuild
+++ b/net-misc/bfgminer/bfgminer-2.6.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.6.3.ebuild,v 1.1 2012/08/06 15:57:53 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.6.3.ebuild,v 1.2 2012/08/22 02:10:20 blueness Exp $
EAPI="4"
@@ -12,7 +12,7 @@ SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2"
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS="~x86 ~amd64"
+KEYWORDS="~amd64 ~x86"
IUSE="+adl altivec bitforce +cpumining examples hardened icarus modminer ncurses +opencl padlock scrypt sse2 sse2_4way sse4 +udev ztex"
REQUIRED_USE="
@@ -38,16 +38,17 @@ DEPEND="
virtual/libusb:1
)
"
-RDEPEND="${DEPEND}"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
DEPEND="${DEPEND}
virtual/pkgconfig
sys-apps/sed
adl? (
x11-libs/amd-adl-sdk
)
- opencl? (
- virtual/opencl
- )
sse2? (
>=dev-lang/yasm-1.0.1
)
diff --git a/net-misc/bfgminer/bfgminer-2.6.4.ebuild b/net-misc/bfgminer/bfgminer-2.6.4.ebuild
new file mode 100644
index 000000000000..b048c0469acd
--- /dev/null
+++ b/net-misc/bfgminer/bfgminer-2.6.4.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.6.4.ebuild,v 1.1 2012/08/22 02:10:20 blueness Exp $
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Modular Bitcoin CPU/GPU/FPGA miner in C"
+HOMEPAGE="https://bitcointalk.org/index.php?topic=78192.0"
+SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="+adl altivec bitforce +cpumining examples hardened icarus modminer ncurses +opencl padlock scrypt sse2 sse2_4way sse4 +udev ztex"
+REQUIRED_USE="
+ || ( bitforce cpumining icarus modminer opencl ztex )
+ adl? ( opencl )
+ altivec? ( cpumining ppc ppc64 )
+ padlock? ( cpumining || ( amd64 x86 ) )
+ scrypt? ( || ( cpumining opencl ) )
+ sse2? ( cpumining || ( amd64 x86 ) )
+ sse4? ( cpumining amd64 )
+"
+
+DEPEND="
+ net-misc/curl
+ ncurses? (
+ sys-libs/ncurses
+ )
+ dev-libs/jansson
+ udev? (
+ sys-fs/udev
+ )
+ ztex? (
+ virtual/libusb:1
+ )
+"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
+DEPEND="${DEPEND}
+ virtual/pkgconfig
+ sys-apps/sed
+ sse2? (
+ >=dev-lang/yasm-1.0.1
+ )
+ sse4? (
+ >=dev-lang/yasm-1.0.1
+ )
+"
+
+src_prepare() {
+ sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\|ALTIVEC\)\)/\/\/ \1/' miner.h
+}
+
+src_configure() {
+ local CFLAGS="${CFLAGS}"
+ if ! use altivec; then
+ sed -i 's/-faltivec//g' configure
+ else
+ CFLAGS="${CFLAGS} -DWANT_ALTIVEC=1"
+ fi
+ use padlock && CFLAGS="${CFLAGS} -DWANT_VIA_PADLOCK=1"
+ if use sse2; then
+ if use amd64; then
+ CFLAGS="${CFLAGS} -DWANT_X8664_SSE2=1"
+ else
+ CFLAGS="${CFLAGS} -DWANT_X8632_SSE2=1"
+ fi
+ fi
+ use sse2_4way && CFLAGS="${CFLAGS} -DWANT_SSE2_4WAY=1"
+ use sse4 && CFLAGS="${CFLAGS} -DWANT_X8664_SSE4=1"
+ use hardened && CFLAGS="${CFLAGS} -nopie"
+
+ CFLAGS="${CFLAGS}" \
+ econf \
+ $(use_enable adl) \
+ $(use_enable bitforce) \
+ $(use_enable cpumining) \
+ $(use_enable icarus) \
+ $(use_enable modminer) \
+ $(use_with ncurses curses) \
+ $(use_enable opencl) \
+ $(use_enable scrypt) \
+ $(use_with udev libudev) \
+ $(use_enable ztex)
+ # sanitize directories
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer"'"~' config.h
+}
+
+src_install() {
+ dobin bfgminer
+ dodoc AUTHORS NEWS README API-README
+ if use scrypt; then
+ dodoc SCRYPT-README
+ fi
+ if use icarus || use bitforce; then
+ dodoc FPGA-README
+ fi
+ if use modminer; then
+ insinto /usr/lib/bfgminer/modminer
+ doins bitstreams/*.ncd
+ dodoc bitstreams/COPYING_fpgaminer
+ fi
+ if use opencl; then
+ insinto /usr/lib/bfgminer
+ doins *.cl
+ fi
+ if use ztex; then
+ insinto /usr/lib/bfgminer/ztex
+ doins bitstreams/*.bit
+ dodoc bitstreams/COPYING_ztex
+ fi
+ if use examples; then
+ docinto examples
+ dodoc api-example.php miner.php API.java api-example.c
+ fi
+}
diff --git a/net-misc/bfgminer/bfgminer-2.6.5.ebuild b/net-misc/bfgminer/bfgminer-2.6.5.ebuild
new file mode 100644
index 000000000000..f2a65036954d
--- /dev/null
+++ b/net-misc/bfgminer/bfgminer-2.6.5.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.6.5.ebuild,v 1.1 2012/08/22 02:10:20 blueness Exp $
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Modular Bitcoin CPU/GPU/FPGA miner in C"
+HOMEPAGE="https://bitcointalk.org/index.php?topic=78192.0"
+SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="+adl altivec bitforce +cpumining examples hardened icarus modminer ncurses +opencl padlock scrypt sse2 sse2_4way sse4 +udev ztex"
+REQUIRED_USE="
+ || ( bitforce cpumining icarus modminer opencl ztex )
+ adl? ( opencl )
+ altivec? ( cpumining ppc ppc64 )
+ padlock? ( cpumining || ( amd64 x86 ) )
+ scrypt? ( || ( cpumining opencl ) )
+ sse2? ( cpumining || ( amd64 x86 ) )
+ sse4? ( cpumining amd64 )
+"
+
+DEPEND="
+ net-misc/curl
+ ncurses? (
+ sys-libs/ncurses
+ )
+ dev-libs/jansson
+ udev? (
+ sys-fs/udev
+ )
+ ztex? (
+ virtual/libusb:1
+ )
+"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
+DEPEND="${DEPEND}
+ virtual/pkgconfig
+ sys-apps/sed
+ sse2? (
+ >=dev-lang/yasm-1.0.1
+ )
+ sse4? (
+ >=dev-lang/yasm-1.0.1
+ )
+"
+
+src_prepare() {
+ sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\|ALTIVEC\)\)/\/\/ \1/' miner.h
+}
+
+src_configure() {
+ local CFLAGS="${CFLAGS}"
+ if ! use altivec; then
+ sed -i 's/-faltivec//g' configure
+ else
+ CFLAGS="${CFLAGS} -DWANT_ALTIVEC=1"
+ fi
+ use padlock && CFLAGS="${CFLAGS} -DWANT_VIA_PADLOCK=1"
+ if use sse2; then
+ if use amd64; then
+ CFLAGS="${CFLAGS} -DWANT_X8664_SSE2=1"
+ else
+ CFLAGS="${CFLAGS} -DWANT_X8632_SSE2=1"
+ fi
+ fi
+ use sse2_4way && CFLAGS="${CFLAGS} -DWANT_SSE2_4WAY=1"
+ use sse4 && CFLAGS="${CFLAGS} -DWANT_X8664_SSE4=1"
+ use hardened && CFLAGS="${CFLAGS} -nopie"
+
+ CFLAGS="${CFLAGS}" \
+ econf \
+ $(use_enable adl) \
+ $(use_enable bitforce) \
+ $(use_enable cpumining) \
+ $(use_enable icarus) \
+ $(use_enable modminer) \
+ $(use_with ncurses curses) \
+ $(use_enable opencl) \
+ $(use_enable scrypt) \
+ $(use_with udev libudev) \
+ $(use_enable ztex)
+ # sanitize directories
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer"'"~' config.h
+}
+
+src_install() {
+ dobin bfgminer
+ dodoc AUTHORS NEWS README API-README
+ if use scrypt; then
+ dodoc SCRYPT-README
+ fi
+ if use icarus || use bitforce; then
+ dodoc FPGA-README
+ fi
+ if use bitforce; then
+ dobin bitforce-firmware-flash
+ fi
+ if use modminer; then
+ insinto /usr/lib/bfgminer/modminer
+ doins bitstreams/*.ncd
+ dodoc bitstreams/COPYING_fpgaminer
+ fi
+ if use opencl; then
+ insinto /usr/lib/bfgminer
+ doins *.cl
+ fi
+ if use ztex; then
+ insinto /usr/lib/bfgminer/ztex
+ doins bitstreams/*.bit
+ dodoc bitstreams/COPYING_ztex
+ fi
+ if use examples; then
+ docinto examples
+ dodoc api-example.php miner.php API.java api-example.c
+ fi
+}
diff --git a/net-misc/bfgminer/bfgminer-2.7.0.ebuild b/net-misc/bfgminer/bfgminer-2.7.0.ebuild
new file mode 100644
index 000000000000..a2058ac5376b
--- /dev/null
+++ b/net-misc/bfgminer/bfgminer-2.7.0.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.7.0.ebuild,v 1.1 2012/08/22 02:10:20 blueness Exp $
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Modular Bitcoin CPU/GPU/FPGA miner in C"
+HOMEPAGE="https://bitcointalk.org/index.php?topic=78192.0"
+SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="+adl altivec bitforce +cpumining examples hardened icarus modminer ncurses +opencl padlock scrypt sse2 sse2_4way sse4 +udev ztex"
+REQUIRED_USE="
+ || ( bitforce cpumining icarus modminer opencl ztex )
+ adl? ( opencl )
+ altivec? ( cpumining ppc ppc64 )
+ padlock? ( cpumining || ( amd64 x86 ) )
+ scrypt? ( || ( cpumining opencl ) )
+ sse2? ( cpumining || ( amd64 x86 ) )
+ sse4? ( cpumining amd64 )
+"
+
+DEPEND="
+ net-misc/curl
+ ncurses? (
+ sys-libs/ncurses
+ )
+ dev-libs/jansson
+ udev? (
+ sys-fs/udev
+ )
+ ztex? (
+ virtual/libusb:1
+ )
+"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
+DEPEND="${DEPEND}
+ virtual/pkgconfig
+ sys-apps/sed
+ sse2? (
+ >=dev-lang/yasm-1.0.1
+ )
+ sse4? (
+ >=dev-lang/yasm-1.0.1
+ )
+"
+
+src_prepare() {
+ sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\|ALTIVEC\)\)/\/\/ \1/' miner.h
+}
+
+src_configure() {
+ local CFLAGS="${CFLAGS}"
+ if ! use altivec; then
+ sed -i 's/-faltivec//g' configure
+ else
+ CFLAGS="${CFLAGS} -DWANT_ALTIVEC=1"
+ fi
+ use padlock && CFLAGS="${CFLAGS} -DWANT_VIA_PADLOCK=1"
+ if use sse2; then
+ if use amd64; then
+ CFLAGS="${CFLAGS} -DWANT_X8664_SSE2=1"
+ else
+ CFLAGS="${CFLAGS} -DWANT_X8632_SSE2=1"
+ fi
+ fi
+ use sse2_4way && CFLAGS="${CFLAGS} -DWANT_SSE2_4WAY=1"
+ use sse4 && CFLAGS="${CFLAGS} -DWANT_X8664_SSE4=1"
+ use hardened && CFLAGS="${CFLAGS} -nopie"
+
+ CFLAGS="${CFLAGS}" \
+ econf \
+ $(use_enable adl) \
+ $(use_enable bitforce) \
+ $(use_enable cpumining) \
+ $(use_enable icarus) \
+ $(use_enable modminer) \
+ $(use_with ncurses curses) \
+ $(use_enable opencl) \
+ $(use_enable scrypt) \
+ $(use_with udev libudev) \
+ $(use_enable ztex)
+ # sanitize directories
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer"'"~' config.h
+}
+
+src_install() {
+ dobin bfgminer
+ dodoc AUTHORS NEWS README API-README
+ if use scrypt; then
+ dodoc SCRYPT-README
+ fi
+ if use icarus || use bitforce; then
+ dodoc FPGA-README
+ fi
+ if use bitforce; then
+ dobin bitforce-firmware-flash
+ fi
+ if use modminer; then
+ insinto /usr/lib/bfgminer/modminer
+ doins bitstreams/*.ncd
+ dodoc bitstreams/COPYING_fpgaminer
+ fi
+ if use opencl; then
+ insinto /usr/lib/bfgminer
+ doins *.cl
+ fi
+ if use ztex; then
+ insinto /usr/lib/bfgminer/ztex
+ doins bitstreams/*.bit
+ dodoc bitstreams/COPYING_ztex
+ fi
+ if use examples; then
+ docinto examples
+ dodoc api-example.php miner.php API.java api-example.c
+ fi
+}