2020-03-10 16:06:06 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# rtty
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-02-25 13:30:22 +01:00
|
|
|
RTTY_VERSION = 8.1.0
|
2020-03-10 16:06:06 +01:00
|
|
|
RTTY_SITE = https://github.com/zhaojh329/rtty/releases/download/v$(RTTY_VERSION)
|
|
|
|
RTTY_LICENSE = MIT
|
|
|
|
RTTY_LICENSE_FILES = LICENSE
|
|
|
|
RTTY_DEPENDENCIES = libev
|
2020-03-22 21:42:49 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
|
|
|
RTTY_DEPENDENCIES += mbedtls
|
2020-03-29 21:59:24 +02:00
|
|
|
RTTY_CONF_OPTS += \
|
2023-02-25 13:30:22 +01:00
|
|
|
-DSSL_SUPPORT=ON \
|
|
|
|
-DUSE_MBEDTLS=ON \
|
|
|
|
-DUSE_OPENSSL=OFF \
|
|
|
|
-DUSE_WOLFSSL=OFF
|
2020-03-22 21:42:49 +01:00
|
|
|
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2020-03-26 21:24:45 +01:00
|
|
|
RTTY_DEPENDENCIES += host-pkgconf openssl
|
2020-03-29 21:59:24 +02:00
|
|
|
RTTY_CONF_OPTS += \
|
2023-02-25 13:30:22 +01:00
|
|
|
-DSSL_SUPPORT=ON \
|
|
|
|
-DUSE_MBEDTLS=OFF \
|
|
|
|
-DUSE_OPENSSL=ON \
|
|
|
|
-DUSE_WOLFSSL=OFF
|
2020-03-22 21:42:49 +01:00
|
|
|
else ifeq ($(BR2_PACKAGE_WOLFSSL),y)
|
|
|
|
RTTY_DEPENDENCIES += wolfssl
|
2020-03-29 21:59:24 +02:00
|
|
|
RTTY_CONF_OPTS += \
|
2023-02-25 13:30:22 +01:00
|
|
|
-DSSL_SUPPORT=ON \
|
|
|
|
-DUSE_MBEDTLS=OFF \
|
|
|
|
-DUSE_OPENSSL=OFF \
|
|
|
|
-DUSE_WOLFSSL=ON
|
2020-03-22 21:42:49 +01:00
|
|
|
else
|
2023-02-25 13:30:22 +01:00
|
|
|
RTTY_CONF_OPTS += -DSSL_SUPPORT=OFF
|
2020-03-22 21:42:49 +01:00
|
|
|
endif
|
2020-03-10 16:06:06 +01:00
|
|
|
|
|
|
|
$(eval $(cmake-package))
|