Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 2013 15:08:30 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333239 - head/net-p2p/cpuminer
Message-ID:  <201311081508.rA8F8UAf029088@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Fri Nov  8 15:08:30 2013
New Revision: 333239
URL: http://svnweb.freebsd.org/changeset/ports/333239

Log:
  Depend on gcc 4.6+ to get substantially higher hashrates on modern CPUs

Modified:
  head/net-p2p/cpuminer/Makefile

Modified: head/net-p2p/cpuminer/Makefile
==============================================================================
--- head/net-p2p/cpuminer/Makefile	Fri Nov  8 15:06:28 2013	(r333238)
+++ head/net-p2p/cpuminer/Makefile	Fri Nov  8 15:08:30 2013	(r333239)
@@ -3,7 +3,7 @@
 
 PORTNAME=	cpuminer
 PORTVERSION=	2.3.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-p2p math
 MASTER_SITES=	SF
 MASTER_SITE_SUBDIR=	cpuminer
@@ -20,19 +20,15 @@ LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 USE_AUTOTOOLS=	aclocal autoheader automake autoconf
 AUTOMAKE_ARGS=	--gnu --add-missing --copy
+# gcc 4.6 yields higher hashrates on newer CPUs, gcc 4.8 even better
+USE_GCC?=	yes
 
 PLIST_FILES=	bin/minerd
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} > 1000000
-USE_GCC=        yes
-.endif
-
 post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}/
 .for FILE in NEWS README
 	${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}/
 .endfor
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311081508.rA8F8UAf029088>