# Created by: Emanuel Haupt # $FreeBSD$ PORTNAME= xmrig PORTVERSION= 2.5.2 DISTVERSIONPREFIX= v CATEGORIES= net-p2p MAINTAINER= ehaupt@FreeBSD.org COMMENT= High performance Monero (XMR) CPU miner LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE 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 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 @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/src/config.json ${STAGEDIR}${ETCDIR}/config.json.sample .include