kumquat-buildroot/package/xmrig/xmrig.mk
Bernd Kuhls 6ea8073519 package/xmrig: bump version to 6.21.2
Changelog: https://github.com/xmrig/xmrig/blob/master/CHANGELOG.md

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit c8800c34fe)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-05-06 12:55:40 +02:00

44 lines
1.1 KiB
Makefile

################################################################################
#
# xmrig
#
################################################################################
XMRIG_VERSION = 6.21.2
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))