Root/cgminer/Makefile

Source at commit 9feb48247d2fb45cacaaec5ac6fad506ad9a5191 created 8 years 5 months ago.
By Xiangfu Liu, cgminer: most patches merged to upstream
1#
2# Copyright (C) 2012 Xiangfu Liu <xiangfu.z@gmail.com>
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:=20120305
13PKG_REV:=97ab111ec924e8812eaeff2f4f71940811a3cf1b
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/
51    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgminer $(1)/usr/bin/
52endef
53
54$(eval $(call BuildPackage,cgminer))
55

Archive Download this file



interactive