cgminer: update to 3.0.0; added opencl pkg option for x86.

This commit is contained in:
Juan RP 2013-04-23 10:31:36 +02:00
parent ab999a2251
commit c210cc4318

View file

@ -1,17 +1,18 @@
# Template file for 'cgminer'
pkgname=cgminer
version=2.10.4
version=3.0.0
revision=1
build_style=gnu-configure
configure_args="--disable-adl --enable-cpumining --enable-scrypt"
configure_args="--disable-adl --enable-bitforce
--enable-icarus --enable-avalon --enable-modminer --enable-ztex"
hostmakedepends="pkg-config yasm"
makedepends="libcurl-devel opencl-headers libudev-devel ncurses-devel nvidia-opencl"
makedepends="libcurl-devel libusb-devel libudev-devel ncurses-devel"
short_desc="Multi-threaded multi-pool CPU and GPU miner for bitcoin"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="https://github.com/ckolivas/cgminer"
distfiles="http://ck.kolivas.org/apps/cgminer/cgminer-${version}.tar.bz2"
checksum=ae80c863498b8cfa87cc0dc38c525d005df82b569e2a4a050802914ee01a1b3f
checksum=a50e2f594377f10ab91e92e1e0d79ccdb268b34dcaca2193c231330266583d55
post_install() {
vinstall example.conf 644 etc cgminer.conf
@ -22,7 +23,22 @@ post_install() {
cgminer_package() {
conf_files="/etc/cgminer.conf"
pkg_install() {
vmove etc
vmove usr
vmove all
}
}
# Package build options
build_options="opencl"
desc_option_opencl="Enable support for OpenCL mining"
# Enable opencl by default on x86.
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
build_options_default="opencl"
fi
if [ "$build_option_opencl" ]; then
configure_args+=" --enable-scrypt --enable-opencl"
makedepends+=" opencl-headers nvidia-opencl"
else
configure_args+=" --disable-scrypt --disable-opencl"
fi