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-05-18 09:35:31 +03:00
|
|
|
# bitcoin: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q
|
2012-02-10 05:13:32 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cgminer
|
2013-03-02 11:24:35 +02:00
|
|
|
PKG_VERSION:=2.10.5
|
2012-09-05 07:35:18 +03:00
|
|
|
PKG_RELEASE:=1
|
2012-02-10 05:13:32 +02:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2013-01-17 17:05:58 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://ck.kolivas.org/apps/cgminer/
|
2012-02-10 05:13:32 +02:00
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
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-12-31 02:34:09 +02:00
|
|
|
DEPENDS:=+libcurl +libpthread +jansson +udev
|
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-12-31 02:34:09 +02:00
|
|
|
CONFIGURE_ARGS += --disable-opencl --disable-adl --enable-icarus --enable-bitforce --without-curses
|
2012-02-10 05:13:32 +02:00
|
|
|
TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
2012-05-04 04:26:32 +03:00
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default)
|
|
|
|
( cd $(PKG_BUILD_DIR) && $(TARGET_CC) api-example.c -I compat/jansson -o cgminer-api; )
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2012-02-10 05:13:32 +02:00
|
|
|
define Package/cgminer/install
|
2012-05-11 07:24:22 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/hotplug.d/usb
|
2012-03-19 09:59:39 +02:00
|
|
|
|
2012-05-04 04:26:32 +03:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cgminer-api $(1)/usr/bin
|
|
|
|
|
2012-03-19 09:59:39 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgminer $(1)/usr/bin
|
2012-05-20 13:05:35 +03:00
|
|
|
$(INSTALL_BIN) $(FILES_DIR)/cgminer-monitor $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(FILES_DIR)/cgminer.init $(1)/etc/init.d/cgminer
|
2012-05-11 07:24:22 +03:00
|
|
|
|
2012-05-18 08:12:16 +03:00
|
|
|
$(CP) $(FILES_DIR)/20-cgminer.hotplug $(1)/etc/hotplug.d/usb/20-cgminer
|
2012-02-10 05:13:32 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,cgminer))
|