kumquat-buildroot/package/rtty/rtty.mk
Thomas Petazzoni 0f1ea7dc75 Revert "package/rtty: remove unnecessary cmake options"
This reverts commit 7f169e6bc3.

As pointed out by Yann E. Morin, we really want to explicitly disable
crypto backends, otherwise they will get automatically re-enabled if
one of the dependencies is found:

    elseif(OPENSSL_FOUND)
        set(RTTY_USE_OPENSSL ON)
    elseif(WOLFSSL_FOUND)
        set(RTTY_USE_WOLFSSL ON)
    elseif(MBEDTLS_FOUND)
        set(RTTY_USE_MBEDTLS ON)

But as usual, dependencies may incorrectly be found, so we want to
explicitly disable.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-03-29 21:59:24 +02:00

39 lines
995 B
Makefile

################################################################################
#
# rtty
#
################################################################################
RTTY_VERSION = 7.1.2
RTTY_SITE = https://github.com/zhaojh329/rtty/releases/download/v$(RTTY_VERSION)
RTTY_LICENSE = MIT
RTTY_LICENSE_FILES = LICENSE
RTTY_DEPENDENCIES = libev
ifeq ($(BR2_PACKAGE_MBEDTLS),y)
RTTY_DEPENDENCIES += mbedtls
RTTY_CONF_OPTS += \
-DRTTY_SSL_SUPPORT=ON \
-DRTTY_USE_MBEDTLS=ON \
-DRTTY_USE_OPENSSL=OFF \
-DRTTY_USE_WOLFSSL=OFF
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
RTTY_DEPENDENCIES += host-pkgconf openssl
RTTY_CONF_OPTS += \
-DRTTY_SSL_SUPPORT=ON \
-DRTTY_USE_MBEDTLS=OFF \
-DRTTY_USE_OPENSSL=ON \
-DRTTY_USE_WOLFSSL=OFF
else ifeq ($(BR2_PACKAGE_WOLFSSL),y)
RTTY_DEPENDENCIES += wolfssl
RTTY_CONF_OPTS += \
-DRTTY_SSL_SUPPORT=ON \
-DRTTY_USE_MBEDTLS=OFF \
-DRTTY_USE_OPENSSL=OFF \
-DRTTY_USE_WOLFSSL=ON
else
RTTY_CONF_OPTS += -DRTTY_SSL_SUPPORT=OFF
endif
$(eval $(cmake-package))