cgminer: update to 3.4.1.

This commit is contained in:
Juan RP 2013-09-02 11:08:44 +02:00
parent 7ead952d68
commit b5e5b2ca2e

View file

@ -1,18 +1,30 @@
# Template file for 'cgminer'
pkgname=cgminer
version=3.3.0
version=3.4.1
revision=1
build_style=gnu-configure
configure_args="--disable-adl --enable-bitforce --enable-bflsc
--enable-icarus --enable-avalon --enable-modminer --enable-ztex"
hostmakedepends="pkg-config yasm"
makedepends="libcurl-devel libusb-devel libudev-devel ncurses-devel"
makedepends="libcurl-devel libusb-devel jansson-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=2f0f43c7cae167bc97cbd4388f57936f9249c0cafb6f03b1448e34fe88342f7d
checksum=b17cad48d3470f94e777faf56a7947e72d409ce01c42c838faa63899d8c745f8
pre_configure() {
# We have latest jansson and libusb - just use them
sed "s|ac_subdirs_all='compat/libusb\-1.0'||" -i ./configure
sed 's|subdirs="$subdirs compat/libusb\-1.0"||' -i ./configure
sed 's|LIBUSB_LIBS="compat/libusb-1.0/libusb/.libs/libusb-1.0.a"|LIBUSB_LIBS=-lusb-1.0|' -i ./configure
sed 's|JANSSON_LIBS="compat/jansson/libjansson.a"|JANSSON_LIBS=-ljansson|' -i ./configure
sed 's|compat/Makefile compat/jansson/Makefile||' -i ./configure
sed 's|JANSSON_INCLUDES = -I$(top_srcdir)/compat/jansson||' -i ./Makefile.in
sed "s|USBUTILS_INCLUDES = -I\$(top_srcdir)/compat/libusb\-1.0/libusb|USBUTILS_INCLUDES = -I${XBPS_CROSS_BASE}/usr/include/libusb-1.0|" -i ./Makefile.in
sed 's|SUBDIRS = lib compat ccan|SUBDIRS = lib ccan|' -i ./Makefile.in
}
post_install() {
vinstall example.conf 644 etc cgminer.conf