OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
Source at commit 8b7a89168c777ee394adff8070b29581ebf46ba8 created 10 years 6 months ago. By Xiangfu, cgmienr: add a webui, update to 2.10.5 | |
---|---|
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 | |
9 | include $(TOPDIR)/rules.mk |
10 | |
11 | PKG_NAME:=cgminer |
12 | PKG_VERSION:=2.10.5 |
13 | PKG_RELEASE:=1 |
14 | PKG_INSTALL:=1 |
15 | |
16 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
17 | PKG_SOURCE_URL:=http://ck.kolivas.org/apps/cgminer/ |
18 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
19 | |
20 | PKG_FIXUP:=autoreconf |
21 | |
22 | include $(INCLUDE_DIR)/package.mk |
23 | |
24 | define 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 |
31 | endef |
32 | |
33 | define Package/cgminer/description |
34 | Cgminer is a multi-threaded multi-pool GPU, FPGA and CPU miner with ATI GPU |
35 | monitoring, (over)clocking and fanspeed support for bitcoin and derivative |
36 | coins. Do not use on multiple block chains at the same time! |
37 | endef |
38 | |
39 | CONFIGURE_ARGS += --disable-opencl --disable-adl --enable-icarus --enable-bitforce --without-curses |
40 | TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib |
41 | |
42 | define Build/Compile |
43 | $(call Build/Compile/Default) |
44 | ( cd $(PKG_BUILD_DIR) && $(TARGET_CC) api-example.c -I compat/jansson -o cgminer-api; ) |
45 | endef |
46 | |
47 | |
48 | define 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 |
58 | endef |
59 | |
60 | $(eval $(call BuildPackage,cgminer)) |
61 |