Root/cgminer/Makefile

Source at commit 01bb56af3e9f51ebf3c644ed9c568d267eec8fa1 created 12 years 1 month ago.
By Xiangfu Liu, cgminer: support icarus by upstream, fix the multi-icarus support
1#
2# Copyright (C) 2012 Xiangfu Liu <xiangfu@sharism.cc>
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:=20120226
13PKG_REV:=daf1eff13c5583770ed4a8e7a399924b1e208845
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" \
29        <xiangfu@sharism.cc> <1BQvUsuQBYUyVuX4jjFk4dVBpWJVQEUHTZ>
30    SECTION:=utils
31    CATEGORY:=Utilities
32    TITLE:=cgminer
33    URL:=https://github.com/ckolivas/cgminer
34    DEPENDS:=+libcurl +libpthread +libncurses +jansson
35endef
36
37define Package/cgminer/description
38endef
39
40CONFIGURE_ARGS += --disable-opencl --disable-adl --enable-icarus --enable-bitforce
41TARGET_CFLAGS +=
42TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
43
44define Package/cgminer/install
45    $(INSTALL_DIR) $(1)/usr/bin/
46    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgminer $(1)/usr/bin/
47endef
48
49$(eval $(call BuildPackage,cgminer))
50

Archive Download this file



interactive