kumquat-buildroot/package/xmrig/xmrig.mk
Bernd Kuhls 66c9559d16 package/xmrig: bump version to 6.13.1
Changelog: https://github.com/xmrig/xmrig/blob/master/CHANGELOG.md

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-07-19 23:36:07 +02:00

44 lines
1.1 KiB
Makefile

################################################################################
#
# xmrig
#
################################################################################
XMRIG_VERSION = 6.13.1
XMRIG_SITE = $(call github,xmrig,xmrig,v$(XMRIG_VERSION))
XMRIG_LICENSE = GPL-3.0+
XMRIG_LICENSE_FILES = LICENSE
XMRIG_DEPENDENCIES = libuv
XMRIG_CONF_OPTS = -DWITH_CUDA=OFF
ifeq ($(BR2_PACKAGE_HAS_LIBOPENCL),y)
XMRIG_CONF_OPTS += -DWITH_OPENCL=ON
XMRIG_DEPENDENCIES += libopencl
else
XMRIG_CONF_OPTS += -DWITH_OPENCL=OFF
endif
ifeq ($(BR2_PACKAGE_HWLOC),y)
XMRIG_CONF_OPTS += -DWITH_HWLOC=ON
XMRIG_DEPENDENCIES += hwloc
else
XMRIG_CONF_OPTS += -DWITH_HWLOC=OFF
endif
ifeq ($(BR2_PACKAGE_OPENSSL),y)
XMRIG_CONF_OPTS += -DWITH_TLS=ON
XMRIG_DEPENDENCIES += openssl
else
XMRIG_CONF_OPTS += -DWITH_TLS=OFF
XMRIG_SUFFIX = -notls
endif
# Upstream provides no installation rule:
# *** No rule to make target 'install/fast'. Stop.
define XMRIG_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/xmrig$(XMRIG_SUFFIX) \
$(TARGET_DIR)/usr/bin/xmrig$(XMRIG_SUFFIX)
endef
$(eval $(cmake-package))