[127063] trunk/dports/finance/cgminer

ram at macports.org ram at macports.org
Mon Oct 20 06:51:39 PDT 2014


Revision: 127063
          https://trac.macports.org/changeset/127063
Author:   ram at macports.org
Date:     2014-10-20 06:51:39 -0700 (Mon, 20 Oct 2014)
Log Message:
-----------
finance/cgminer: update to 4.7.0

Modified Paths:
--------------
    trunk/dports/finance/cgminer/Portfile

Added Paths:
-----------
    trunk/dports/finance/cgminer/files/patch-api.c.diff

Modified: trunk/dports/finance/cgminer/Portfile
===================================================================
--- trunk/dports/finance/cgminer/Portfile	2014-10-20 13:19:43 UTC (rev 127062)
+++ trunk/dports/finance/cgminer/Portfile	2014-10-20 13:51:39 UTC (rev 127063)
@@ -3,7 +3,7 @@
 PortSystem       1.0
 PortGroup        github 1.0
 
-github.setup     ckolivas cgminer 4.6.1 v
+github.setup     ckolivas cgminer 4.7.0 v
 categories       finance
 platforms        darwin
 maintainers      ram openmaintainer
@@ -13,9 +13,12 @@
 long_description \
   This is a multi-threaded multi-pool FPGA and ASIC miner for bitcoin.
 
-checksums        rmd160 066c03cfc1f1a472d3104677fa59fc614deb528d \
-                 sha256 4d8d4a85e46c02e5146aa5da4d65c2b0080cd3d81870a597c9037e8823fb07aa
+checksums        rmd160 4d84a10e561d226138e5dce7293cfd523d1b567b \
+                 sha256 101970e0131d0c87d5a5d15eafc3344498eeb449b47386c618bf30b8e14e0cf3
 
+# patch around missing IPV6_ADD_MEMBERSHIP define
+patchfiles       patch-api.c.diff
+
 depends_build-append port:pkgconfig \
                  port:gawk
 
@@ -68,6 +71,10 @@
     configure.args-append --enable-bitmine_A1
 }
 
+variant blockerupter description {Add support for BlockErupter} {
+    configure.args-append --enable-blockerupter
+}
+
 variant cointerra description {Add support for Cointerra ASICs} {
     configure.args-append --enable-cointerra
 }

Added: trunk/dports/finance/cgminer/files/patch-api.c.diff
===================================================================
--- trunk/dports/finance/cgminer/files/patch-api.c.diff	                        (rev 0)
+++ trunk/dports/finance/cgminer/files/patch-api.c.diff	2014-10-20 13:51:39 UTC (rev 127063)
@@ -0,0 +1,24 @@
+--- api.c
++++ api.c
+@@ -26,6 +26,12 @@
+ #include "util.h"
+ #include "klist.h"
+ 
++#ifdef IPV6_ADD_MEMBERSHIP
++#define CGM_IPV6_ADD_MEMBERSHIP IPV6_ADD_MEMBERSHIP
++#else
++#define CGM_IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
++#endif
++
+ #if defined(USE_BFLSC) || defined(USE_AVALON) || defined(USE_AVALON2) || \
+   defined(USE_HASHFAST) || defined(USE_BITFURY) || defined(USE_BLOCKERUPTER) || defined(USE_KLONDIKE) || \
+ 	defined(USE_KNC) || defined(USE_BAB) || defined(USE_DRILLBIT) || \
+@@ -4705,7 +4711,7 @@
+ 					sizeof(struct in6_addr));
+ 			grp.ipv6mr_interface= 0;
+ 
+-			if (SOCKETFAIL(setsockopt(mcast_sock, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP,
++			if (SOCKETFAIL(setsockopt(mcast_sock, IPPROTO_IPV6, CGM_IPV6_ADD_MEMBERSHIP,
+ 							(void *)(&grp), sizeof(grp)))) {
+ 				applog(LOG_ERR, "API mcast join failed (%s)%s", SOCKERRMSG, MUNAVAILABLE);
+ 				goto die;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141020/301281b7/attachment.html>


More information about the macports-changes mailing list