aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2018-10-18 16:00:17 +0800
committerehaupt <ehaupt@FreeBSD.org>2018-10-18 16:00:17 +0800
commitfc75106491658c90cf109adbd5276372497d27da (patch)
tree5819e7df45d02aa8aac7eec0791888c82f705981 /net-p2p
parentb4489acf9ff55bd2f0935f17ae0e37e5b6b920bd (diff)
downloadfreebsd-ports-gnome-fc75106491658c90cf109adbd5276372497d27da.tar.gz
freebsd-ports-gnome-fc75106491658c90cf109adbd5276372497d27da.tar.zst
freebsd-ports-gnome-fc75106491658c90cf109adbd5276372497d27da.zip
- Update to 2.8.1
- New version requires ssl USES flag - Pacify portlint
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/xmrig/Makefile27
-rw-r--r--net-p2p/xmrig/distinfo6
-rw-r--r--net-p2p/xmrig/files/extra-patch-CMakeLists.txt11
3 files changed, 20 insertions, 24 deletions
diff --git a/net-p2p/xmrig/Makefile b/net-p2p/xmrig/Makefile
index f4fb42202ee4..2373a1c79347 100644
--- a/net-p2p/xmrig/Makefile
+++ b/net-p2p/xmrig/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= xmrig
-PORTVERSION= 2.6.4
+PORTVERSION= 2.8.1
DISTVERSIONPREFIX= v
CATEGORIES= net-p2p
@@ -14,6 +14,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_powerpc64= fails to configure: Target "xmrig" requires the language dialect "CXX11", but CMake does not know the compile flags to use to enable it.
+USES= cmake:outsource ssl
+USE_GITHUB= yes
+USE_RC_SUBR= ${PORTNAME}
+
+SUB_FILES= pkg-message
+SUB_LIST= PORTNAME=${PORTNAME} USERS=${USERS}
+USERS= xmrig
+
OPTIONS_DEFINE= STATIC MICROHTTPD
MICROHTTPD_DESC=Build with libmicrohttpd support
OPTIONS_DEFAULT=MICROHTTPD
@@ -21,24 +29,23 @@ OPTIONS_DEFAULT=MICROHTTPD
STATIC_PREVENTS=MICROHTTPD
STATIC_PREVENTS_MSG= libmicrohttpd support cannot be built static
-USES= cmake:outsource
-USE_GITHUB= yes
-
-USE_RC_SUBR= ${PORTNAME}
-SUB_FILES= pkg-message
-SUB_LIST= PORTNAME=${PORTNAME} USERS=${USERS}
-USERS= xmrig
-
MICROHTTPD_LIB_DEPENDS+= libmicrohttpd.so:www/libmicrohttpd \
libuv.so:devel/libuv
STATIC_BUILD_DEPENDS+= ${LOCALBASE}/lib/libuv.a:devel/libuv
-STATIC_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-CMakeLists.txt
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|\(set.*EXTRA_LIBS.*\) dl|\1|' \
+ ${WRKSRC}/CMakeLists.txt
post-patch-MICROHTTPD-off:
@${REINPLACE_CMD} -e 's|\(.*WITH_HTTPD.*\)\(ON\)|\1OFF|' \
${WRKSRC}/CMakeLists.txt
+post-patch-STATIC-on:
+ @${REINPLACE_CMD} -e 's|\(.*BUILD_STATIC.*\)\(OFF\)|\1ON|' \
+ ${WRKSRC}/CMakeLists.txt
+
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/.build/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${ETCDIR}
diff --git a/net-p2p/xmrig/distinfo b/net-p2p/xmrig/distinfo
index 9b9aca7f7dc9..6da1494019bf 100644
--- a/net-p2p/xmrig/distinfo
+++ b/net-p2p/xmrig/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1531381494
-SHA256 (xmrig-xmrig-v2.6.4_GH0.tar.gz) = 94640ba6d3971a6ba91113ce24a5afec95189cf007f8146011f9a3b367011a69
-SIZE (xmrig-xmrig-v2.6.4_GH0.tar.gz) = 290206
+TIMESTAMP = 1539848128
+SHA256 (xmrig-xmrig-v2.8.1_GH0.tar.gz) = b5822796e108d9180f9ffbc116ec163af15ee07e38a1b8a5ae4c362222e37c06
+SIZE (xmrig-xmrig-v2.8.1_GH0.tar.gz) = 305269
diff --git a/net-p2p/xmrig/files/extra-patch-CMakeLists.txt b/net-p2p/xmrig/files/extra-patch-CMakeLists.txt
deleted file mode 100644
index c28fd4f99b13..000000000000
--- a/net-p2p/xmrig/files/extra-patch-CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
---- CMakeLists.txt.orig 2018-02-18 21:31:50 UTC
-+++ CMakeLists.txt
-@@ -8,6 +8,8 @@ option(WITH_HTTPD "HTTP REST API" ON)
- include (CheckIncludeFile)
- include (cmake/cpu.cmake)
-
-+set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
-+set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
-
- set(HEADERS
- src/3rdparty/align.h