package/simple-mail: enable for qt6

Signed-off-by: Zoltan Gyarmati <zgyarmati@zgyarmati.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Zoltan Gyarmati 2024-08-09 13:24:02 +02:00 committed by Thomas Petazzoni
parent efb917a17e
commit d2f1985994
2 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,8 @@
config BR2_PACKAGE_SIMPLE_MAIL
bool "simple-mail"
depends on BR2_PACKAGE_QT5
select BR2_PACKAGE_QT5BASE_NETWORK
depends on BR2_PACKAGE_QT5 || BR2_PACKAGE_QT6
select BR2_PACKAGE_QT5BASE_NETWORK if BR2_PACKAGE_QT5
select BR2_PACKAGE_QT6BASE_NETWORK if BR2_PACKAGE_QT6
select BR2_PACKAGE_OPENSSL
help
An SMTP library written in C++ for Qt.

View File

@ -9,7 +9,12 @@ SIMPLE_MAIL_SITE = $(call github,cutelyst,simple-mail,v$(SIMPLE_MAIL_VERSION))
SIMPLE_MAIL_INSTALL_STAGING = YES
SIMPLE_MAIL_LICENSE = LGPL-2.1+
SIMPLE_MAIL_LICENSE_FILES = LICENSE
SIMPLE_MAIL_DEPENDENCIES = qt5base
SIMPLE_MAIL_CONF_OPTS = -DBUILD_DEMOS=OFF
ifeq ($(BR2_PACKAGE_QT5BASE),y)
SIMPLE_MAIL_DEPENDENCIES += qt5base
else ifeq ($(BR2_PACKAGE_QT6BASE),y)
SIMPLE_MAIL_DEPENDENCIES += qt6base
SIMPLE_MAIL_CONF_OPTS += -DQT_VERSION_MAJOR=6
endif
$(eval $(cmake-package))