From: baxiche@gmail.com
To: buildroot@buildroot.org
Cc: baxiche su <baxiche@gmail.com>,
Jesse Van Gavere <jesseevg@gmail.com>,
Samuel Martin <s.martin49@gmail.com>,
Roy Kollen Svendsen <roykollensvendsen@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH 1/1] package/qt6: add qt6 multimedia
Date: Sun, 11 Aug 2024 01:13:35 +0800 [thread overview]
Message-ID: <20240810171335.19227-1-baxiche@gmail.com> (raw)
From: baxiche su <baxiche@gmail.com>
Signed-off-by: baxiche su <baxiche@gmail.com>
---
package/qt6/Config.in | 1 +
package/qt6/qt6multimedia/Config.in | 15 +++++
package/qt6/qt6multimedia/qt6multimedia.hash | 13 ++++
package/qt6/qt6multimedia/qt6multimedia.mk | 71 ++++++++++++++++++++
4 files changed, 100 insertions(+)
create mode 100644 package/qt6/qt6multimedia/Config.in
create mode 100644 package/qt6/qt6multimedia/qt6multimedia.hash
create mode 100644 package/qt6/qt6multimedia/qt6multimedia.mk
diff --git a/package/qt6/Config.in b/package/qt6/Config.in
index 29c1c25c7f..5b55e67b26 100644
--- a/package/qt6/Config.in
+++ b/package/qt6/Config.in
@@ -57,5 +57,6 @@ source "package/qt6/qt6tools/Config.in"
source "package/qt6/qt6virtualkeyboard/Config.in"
source "package/qt6/qt6wayland/Config.in"
source "package/qt6/qt6websockets/Config.in"
+source "package/qt6/qt6multimedia/Config.in"
endif
diff --git a/package/qt6/qt6multimedia/Config.in b/package/qt6/qt6multimedia/Config.in
new file mode 100644
index 0000000000..3d0bf4c70b
--- /dev/null
+++ b/package/qt6/qt6multimedia/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_QT6MULTIMEDIA
+ bool "qt6multimedia"
+ select BR2_PACKAGE_QT6BASE_GUI
+ select BR2_PACKAGE_QT6BASE_NETWORK
+ select BR2_PACKAGE_QT6BASE_WIDGETS
+ select BR2_PACKAGE_QT6BASE_CONCURRENT
+ select BR2_PACKAGE_QT6SHADERTOOLS
+
+ help
+ Qt is a cross-platform application and UI framework for
+ developers using C++.
+
+ This package corresponds to the qt6multimedia module.
+
+ https://doc.qt.io/qt-6/qtmultimedia-index.html
diff --git a/package/qt6/qt6multimedia/qt6multimedia.hash b/package/qt6/qt6multimedia/qt6multimedia.hash
new file mode 100644
index 0000000000..04a8c0cb7d
--- /dev/null
+++ b/package/qt6/qt6multimedia/qt6multimedia.hash
@@ -0,0 +1,13 @@
+# Hash from: https://download.qt.io/official_releases/qt/6.7/6.7.2/submodules/qtmultimedia-everywhere-src-6.7.2.tar.xz.sha256
+sha256 8ef835115acb9a1d3d2c9f23cfacb43f2c537e3786a8ab822299a2a7765651d3 qtmultimedia-everywhere-src-6.7.2.tar.xz
+
+# Hashes for license files:
+sha256 9f0490f18656c6f2435bd14f603ef0c96434d1825615363dce43abb42ed1dcce LICENSES/BSD-3-Clause.txt
+sha256 3abd6471b9a9a08d65ce771143f8e278bb4c1aeb10c1c2d476935a6b049653f5 LICENSES/BSL-1.0.txt
+sha256 110535522396708cea37c72a802c5e7e81391139f5f7985631c93ef242b206a4 LICENSES/GFDL-1.3-no-invariants-only.txt
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSES/GPL-2.0-only.txt
+sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSES/GPL-3.0-only.txt
+sha256 da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768 LICENSES/LGPL-3.0-only.txt
+sha256 d040359701c01996a017d5c515678929cd1b0625e64cb86db44025fbb6cdf1fc LICENSES/MIT.txt
+sha256 9b1f50aae6267f9d5e0ceb6775ee86450262c25ec7c0573e151fe5d3f18a4700 LICENSES/LicenseRef-Qt-Commercial.txt
+sha256 40678d338ce53cd93f8b22b281a2ecbcaa3ee65ce60b25ffb0c462b0530846b2 LICENSES/Qt-GPL-exception-1.0.txt
\ No newline at end of file
diff --git a/package/qt6/qt6multimedia/qt6multimedia.mk b/package/qt6/qt6multimedia/qt6multimedia.mk
new file mode 100644
index 0000000000..a7e9bd22a0
--- /dev/null
+++ b/package/qt6/qt6multimedia/qt6multimedia.mk
@@ -0,0 +1,71 @@
+################################################################################
+#
+# qt6multimedia
+#
+################################################################################
+
+QT6MULTIMEDIA_VERSION = $(QT6_VERSION)
+QT6MULTIMEDIA_SITE = $(QT6_SITE)
+QT6MULTIMEDIA_SOURCE = qtmultimedia-$(QT6_SOURCE_TARBALL_PREFIX)-$(QT6MULTIMEDIA_VERSION).tar.xz
+QT6MULTIMEDIA_INSTALL_STAGING = YES
+
+QT6MULTIMEDIA_SUPPORTS_IN_SOURCE_BUILD = NO
+
+QT6MULTIMEDIA_CMAKE_BACKEND = ninja
+
+QT6MULTIMEDIA_LICENSE = \
+ LGPL-3.0 or GPL-2.0 or GPL-3.0, \
+ LGPL-2.1+, \
+ BSD-3-Clause (docs), \
+ GFDL-1.3 no invariants (docs), \
+ BSD-3-Clause (examples), \
+ BSL-1.0, \
+ MPL-2.0 \
+ MIT
+
+QT6MULTIMEDIA_LICENSE_FILES = \
+ LICENSES/GPL-2.0-only.txt \
+ LICENSES/GPL-3.0-only.txt \
+ LICENSES/LGPL-3.0-only.txt \
+ LICENSES/GFDL-1.3-no-invariants-only.txt \
+ LICENSES/BSL-1.0.txt \
+ LICENSES/BSD-3-Clause.txt \
+ LICENSES/MIT.txt \
+ LICENSES/Qt-GPL-exception-1.0.txt \
+ LICENSES/MPL-2.0.txt \
+ LICENSES/IJG.txt \
+ LICENSES/ISC.txt \
+ LICENSES/zlib.txt \
+
+QT6MULTIMEDIA_CONF_OPTS = \
+ -DQT_HOST_PATH=$(HOST_DIR) \
+ -DBUILD_WITH_PCH=OFF \
+ -DQT_BUILD_EXAMPLES=OFF \
+ -DQT_BUILD_TESTS=OFF
+
+QT6MULTIMEDIA_DEPENDENCIES = \
+ qt6base \
+ qt6shadertools
+
+ifeq ($(BR2_PACKAGE_QT6DECLARATIVE),y)
+QT6MULTIMEDIA_DEPENDENCIES += qt6declarative
+endif
+
+ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
+QT6MULTIMEDIA_DEPENDENCIES += pulseaudio
+endif
+
+ifeq ($(BR2_PACKAGE_FFMPEG)$(BR2_PACKAGE_PULSEAUDIO),yy)
+QT6MULTIMEDIA_CONF_OPTS += -DFFMPEG_DIR=$(BUILD_DIR)/ffmpeg-$(FFMPEG_VERSION) -DQT_DEPLOY_FFMPEG=ON
+QT6MULTIMEDIA_DEPENDENCIES += ffmpeg
+endif
+
+ifeq ($(BR2_PACKAGE_GSTREAMER1),y)
+QT6MULTIMEDIA_DEPENDENCIES += gstreamer1
+endif
+
+ifeq ($(BR2_PACKAGE_LIBVA),y)
+QT6MULTIMEDIA_DEPENDENCIES += libva
+endif
+
+$(eval $(cmake-package))
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2024-08-10 17:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-10 17:13 baxiche [this message]
2024-08-14 11:59 ` [Buildroot] [PATCH 1/1] package/qt6: add qt6 multimedia Roy Kollen Svendsen
2024-09-14 10:13 ` Thomas Petazzoni via buildroot
2024-09-15 17:05 ` baxiche su
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240810171335.19227-1-baxiche@gmail.com \
--to=baxiche@gmail.com \
--cc=buildroot@buildroot.org \
--cc=jesseevg@gmail.com \
--cc=roykollensvendsen@gmail.com \
--cc=s.martin49@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.