From owner-svn-ports-head@freebsd.org Fri Mar 2 08:51:01 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1AF80F30CDC; Fri, 2 Mar 2018 08:51:01 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C279E75085; Fri, 2 Mar 2018 08:51:00 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BD71315565; Fri, 2 Mar 2018 08:51:00 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w228p06Y049477; Fri, 2 Mar 2018 08:51:00 GMT (envelope-from ehaupt@FreeBSD.org) Received: (from ehaupt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w228p0Gi049475; Fri, 2 Mar 2018 08:51:00 GMT (envelope-from ehaupt@FreeBSD.org) Message-Id: <201803020851.w228p0Gi049475@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ehaupt set sender to ehaupt@FreeBSD.org using -f From: Emanuel Haupt Date: Fri, 2 Mar 2018 08:51:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r463382 - in head/net-p2p/xmrig: . files X-SVN-Group: ports-head X-SVN-Commit-Author: ehaupt X-SVN-Commit-Paths: in head/net-p2p/xmrig: . files X-SVN-Commit-Revision: 463382 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2018 08:51:01 -0000 Author: ehaupt Date: Fri Mar 2 08:51:00 2018 New Revision: 463382 URL: https://svnweb.freebsd.org/changeset/ports/463382 Log: - Make libmicrohttpd support optional but on by default - Provide an option to build a statically linked version Added: head/net-p2p/xmrig/files/extra-patch-CMakeLists.txt (contents, props changed) Modified: head/net-p2p/xmrig/Makefile Modified: head/net-p2p/xmrig/Makefile ============================================================================== --- head/net-p2p/xmrig/Makefile Fri Mar 2 08:33:03 2018 (r463381) +++ head/net-p2p/xmrig/Makefile Fri Mar 2 08:51:00 2018 (r463382) @@ -4,7 +4,7 @@ PORTNAME= xmrig PORTVERSION= 2.4.5 DISTVERSIONPREFIX= v -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-p2p MAINTAINER= ehaupt@FreeBSD.org @@ -13,9 +13,13 @@ COMMENT= High performance Monero (XMR) CPU miner LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libmicrohttpd.so:www/libmicrohttpd \ - libuv.so:devel/libuv +OPTIONS_DEFINE= STATIC MICROHTTPD +MICROHTTPD_DESC=Build with libmicrohttpd support +OPTIONS_DEFAULT=MICROHTTPD +STATIC_PREVENTS=MICROHTTPD +STATIC_PREVENTS_MSG= libmicrohttpd support cannot be built static + USES= cmake:outsource USE_GITHUB= yes @@ -23,6 +27,16 @@ 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-MICROHTTPD-off: + @${REINPLACE_CMD} -e 's|\(.*WITH_HTTPD.*\)\(ON\)|\1OFF|' \ + ${WRKSRC}/CMakeLists.txt do-install: ${INSTALL_PROGRAM} ${WRKDIR}/.build/${PORTNAME} ${STAGEDIR}${PREFIX}/bin Added: head/net-p2p/xmrig/files/extra-patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-p2p/xmrig/files/extra-patch-CMakeLists.txt Fri Mar 2 08:51:00 2018 (r463382) @@ -0,0 +1,11 @@ +--- 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