From patchwork Mon Apr 20 16:38:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Bilas X-Patchwork-Id: 1273557 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=grinn-global.com Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 495XSw5nrvz9s71 for ; Tue, 21 Apr 2020 02:38:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C492087EA7; Mon, 20 Apr 2020 16:38:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UtuB7b3DAAnU; Mon, 20 Apr 2020 16:38:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 2991887E07; Mon, 20 Apr 2020 16:38:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 47F8F1BF327 for ; Mon, 20 Apr 2020 16:38:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D576480A5E for ; Mon, 20 Apr 2020 16:38:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DkDH2dlY9OhH for ; Mon, 20 Apr 2020 16:38:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.megiteam.pl (smtp.megiteam.pl [31.186.83.105]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4396086974 for ; Mon, 20 Apr 2020 16:38:30 +0000 (UTC) Received: from host-81-161-203-250.oxylion.net.pl ([81.161.203.250] helo=bartekk-pc.grinndev.ovh) by smtp.megiteam.pl with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86.2_XX) (envelope-from ) id 1jQZRB-0007mF-KP; Mon, 20 Apr 2020 18:38:26 +0200 From: Bartosz Bilas To: buildroot@buildroot.org Date: Mon, 20 Apr 2020 18:38:22 +0200 Message-Id: <20200420163822.411924-1-b.bilas@grinn-global.com> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] package/log4qt: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Bilas Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Log4Qt is a C++ port of the Apache Software Foundation Log4j package using the Qt Framework. Signed-off-by: Bartosz Bilas --- Changes v1 -> v2: - bump version to 1.5.1 - use qmake pkg infra - propagate dependencies from qt5 package - improve commit message DEVELOPERS | 1 + package/Config.in | 1 + package/log4qt/Config.in | 19 +++++++++++++++++++ package/log4qt/log4qt.hash | 3 +++ package/log4qt/log4qt.mk | 31 +++++++++++++++++++++++++++++++ 5 files changed, 55 insertions(+) create mode 100644 package/log4qt/Config.in create mode 100644 package/log4qt/log4qt.hash create mode 100644 package/log4qt/log4qt.mk diff --git a/DEVELOPERS b/DEVELOPERS index b64ad3854f..9a8dc583e9 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -288,6 +288,7 @@ F: package/python-canopen/ N: Bartosz Bilas F: board/stmicroelectronics/stm32mp157a-dk1/ F: configs/stm32mp157a_dk1_defconfig +F: package/log4qt/ F: package/python-esptool/ F: package/python-pyaes/ F: package/qt5/qt5scxml/ diff --git a/package/Config.in b/package/Config.in index a9c6f6fcbc..071ab35781 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1597,6 +1597,7 @@ menu "Logging" source "package/log4cplus/Config.in" source "package/log4cpp/Config.in" source "package/log4cxx/Config.in" + source "package/log4qt/Config.in" source "package/opentracing-cpp/Config.in" source "package/spdlog/Config.in" source "package/zlog/Config.in" diff --git a/package/log4qt/Config.in b/package/log4qt/Config.in new file mode 100644 index 0000000000..1b716bbc51 --- /dev/null +++ b/package/log4qt/Config.in @@ -0,0 +1,19 @@ +config BR2_PACKAGE_LOG4QT + bool "log4qt" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_QT5 + depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # c++11 qt5base + depends on !BR2_STATIC_LIBS + help + Log4Qt is a C++ port of the Apache Software Foundation + Log4j package using the Qt Framework. It is intended to be + used by open source and commercial Qt projects. + + https://github.com/MEONMedical/Log4Qt + +comment "Log4Qt needs qt5, a toolchain w/ gcc >= 5.0, wchar, NPTL, C++, dynamic library" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \ + !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_5 || !BR2_PACKAGE_QT5 diff --git a/package/log4qt/log4qt.hash b/package/log4qt/log4qt.hash new file mode 100644 index 0000000000..757bab1a25 --- /dev/null +++ b/package/log4qt/log4qt.hash @@ -0,0 +1,3 @@ +# Locally computed: +sha256 ff17b794ca7d5290a150a53f6272e6a30a7f4d942aa58298a8328bf10a65858a log4qt-1.5.1.tar.gz +sha256 c6596eb7be8581c18be736c846fb9173b69eccf6ef94c5135893ec56bd92ba08 LICENSE diff --git a/package/log4qt/log4qt.mk b/package/log4qt/log4qt.mk new file mode 100644 index 0000000000..f6560894b3 --- /dev/null +++ b/package/log4qt/log4qt.mk @@ -0,0 +1,31 @@ +################################################################################ +# +# log4qt +# +################################################################################ + +LOG4QT_VERSION = 1.5.1 +LOG4QT_SITE = $(call github,MEONMedical,Log4Qt,v$(LOG4QT_VERSION)) +LOG4QT_DEPENDENCIES += qt5base +LOG4QT_LICENSE = Apache-2.0 +LOG4QT_LICENSE_FILES = LICENSE +LOG4QT_INSTALL_STAGING = YES + +define LOG4QT_INSTALL_STAGING_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install INSTALL_ROOT=$(STAGING_DIR)/usr +endef + +define LOG4QT_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install INSTALL_ROOT=$(TARGET_DIR)/usr +endef + +ifeq ($(BR2_PACKAGE_QT5BASE_SQLITE_QT),y) +LOG4QT_CONF_OPTS += "QT += sql" +endif + +ifeq ($(BR2_PACKAGE_SQLITE)$(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),yy) +LOG4QT_CONF_OPTS += "QT += sql" +LOG4QT_DEPENDENCIES += sqlite +endif + +$(eval $(qmake-package))