Root/cgminer/Makefile

Source at commit 25b0a63d4dbda61c994166c906ccb692c3a1cf5f created 7 years 8 months ago.
By Xiangfu, cgminer: update to 2.10.4, include root-files
1#
2# Copyright (C) 2012 Xiangfu Liu <xiangfu@openmobilefree.net>
3# bitcoin: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q
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:=2.10.4
13PKG_RELEASE:=1
14PKG_INSTALL:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17PKG_SOURCE_URL:=http://ck.kolivas.org/apps/cgminer/
18PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19
20PKG_FIXUP:=autoreconf
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/cgminer
25    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
26    SECTION:=utils
27    CATEGORY:=Utilities
28    TITLE:=cgminer (FPGA Miner)
29    URL:=https://github.com/ckolivas/cgminer
30    DEPENDS:=+libcurl +libpthread +jansson +udev
31endef
32
33define Package/cgminer/description
34Cgminer is a multi-threaded multi-pool GPU, FPGA and CPU miner with ATI GPU
35monitoring, (over)clocking and fanspeed support for bitcoin and derivative
36coins. Do not use on multiple block chains at the same time!
37endef
38
39CONFIGURE_ARGS += --disable-opencl --disable-adl --enable-icarus --enable-bitforce --without-curses
40TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
41
42define Build/Compile
43    $(call Build/Compile/Default)
44    ( cd $(PKG_BUILD_DIR) && $(TARGET_CC) api-example.c -I compat/jansson -o cgminer-api; )
45endef
46
47
48define Package/cgminer/install
49    $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/hotplug.d/usb
50
51    $(INSTALL_BIN) $(PKG_BUILD_DIR)/cgminer-api $(1)/usr/bin
52
53    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgminer $(1)/usr/bin
54    $(INSTALL_BIN) $(FILES_DIR)/cgminer-monitor $(1)/usr/bin
55    $(INSTALL_BIN) $(FILES_DIR)/cgminer.init $(1)/etc/init.d/cgminer
56
57    $(CP) $(FILES_DIR)/20-cgminer.hotplug $(1)/etc/hotplug.d/usb/20-cgminer
58endef
59
60$(eval $(call BuildPackage,cgminer))
61

Archive Download this file



interactive