Root/cgminer/Makefile

1#
2# Copyright (C) 2012 Xiangfu Liu <xiangfu@openmobilefree.net>
3# bitcoin: 1BQvUsuQBYUyVuX4jjFk4dVBpWJVQEUHTZ
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=cgminer
12PKG_VERSION:=20120408
13PKG_REV:=ef76ec8a77d473382303b39de1247b75a4c4ae71
14PKG_RELEASE:=1
15PKG_INSTALL:=1
16
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
18PKG_SOURCE_URL:=git://github.com/ckolivas/cgminer.git
19PKG_SOURCE_PROTO:=git
20PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21PKG_SOURCE_VERSION:=$(PKG_REV)
22
23PKG_FIXUP:=autoreconf
24
25include $(INCLUDE_DIR)/package.mk
26
27define Package/cgminer
28    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
29    SECTION:=utils
30    CATEGORY:=Utilities
31    TITLE:=cgminer (FPGA Miner)
32    URL:=https://github.com/ckolivas/cgminer
33    DEPENDS:=+libcurl +libpthread +libncurses +jansson
34endef
35
36define Package/cgminer/description
37Cgminer is a multi-threaded multi-pool GPU, FPGA and CPU miner with ATI GPU
38monitoring, (over)clocking and fanspeed support for bitcoin and derivative
39coins. Do not use on multiple block chains at the same time!
40endef
41# This package only enable the Icarus support. just connect your Icarus
42# FPGA miner board to OpenWrt router(with USB HOST support)
43# Run like:
44# cgminer -S /dev/ttyUSB0 -o http://MINING.POOL.URL -O USER:PASS
45
46CONFIGURE_ARGS += --disable-opencl --disable-adl --enable-icarus
47TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
48
49define Package/cgminer/install
50    $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d
51
52    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgminer $(1)/usr/bin
53    $(INSTALL_BIN) $(FILES_DIR)/cgminer $(1)/etc/init.d
54endef
55
56$(eval $(call BuildPackage,cgminer))
57

Archive Download this file



interactive