2012-02-10 05:13:32 +02:00
|
|
|
#
|
2012-03-15 12:56:55 +02:00
|
|
|
# Copyright (C) 2012 Xiangfu Liu <xiangfu@openmobilefree.net>
|
2012-02-10 05:13:32 +02:00
|
|
|
# bitcoin: 1BQvUsuQBYUyVuX4jjFk4dVBpWJVQEUHTZ
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cgminer
|
2012-05-04 04:14:59 +03:00
|
|
|
PKG_VERSION:=20120504
|
|
|
|
PKG_REV:=614328352cf22671401f3f6de14a804b0aa4fdb6
|
|
|
|
# this is upstream version 2.4.0
|
2012-04-08 17:08:52 +03:00
|
|
|
PKG_RELEASE:=1
|
2012-02-10 05:13:32 +02:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
|
2012-04-08 17:08:52 +03:00
|
|
|
PKG_SOURCE_URL:=git://github.com/ckolivas/cgminer.git
|
2012-02-10 05:13:32 +02:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/cgminer
|
2012-03-05 04:19:17 +02:00
|
|
|
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
|
2012-02-10 05:13:32 +02:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2012-03-05 04:19:17 +02:00
|
|
|
TITLE:=cgminer (FPGA Miner)
|
2012-02-10 05:13:32 +02:00
|
|
|
URL:=https://github.com/ckolivas/cgminer
|
2012-02-10 05:24:24 +02:00
|
|
|
DEPENDS:=+libcurl +libpthread +libncurses +jansson
|
2012-02-10 05:13:32 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cgminer/description
|
2012-03-05 04:19:17 +02:00
|
|
|
Cgminer is a multi-threaded multi-pool GPU, FPGA and CPU miner with ATI GPU
|
|
|
|
monitoring, (over)clocking and fanspeed support for bitcoin and derivative
|
|
|
|
coins. Do not use on multiple block chains at the same time!
|
2012-02-10 05:13:32 +02:00
|
|
|
endef
|
2012-03-05 04:19:17 +02:00
|
|
|
# This package only enable the Icarus support. just connect your Icarus
|
|
|
|
# FPGA miner board to OpenWrt router(with USB HOST support)
|
|
|
|
# Run like:
|
|
|
|
# cgminer -S /dev/ttyUSB0 -o http://MINING.POOL.URL -O USER:PASS
|
2012-02-10 05:13:32 +02:00
|
|
|
|
2012-02-26 05:27:41 +02:00
|
|
|
CONFIGURE_ARGS += --disable-opencl --disable-adl --enable-icarus
|
2012-02-10 05:13:32 +02:00
|
|
|
TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
|
|
|
define Package/cgminer/install
|
2012-04-08 17:08:52 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d
|
2012-03-19 09:59:39 +02:00
|
|
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgminer $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(FILES_DIR)/cgminer $(1)/etc/init.d
|
2012-02-10 05:13:32 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,cgminer))
|