* [Buildroot] [PATCH v2] qt5/qt53d: new package
@ 2015-12-04 22:08 Peter Seiderer
2015-12-18 21:03 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Peter Seiderer @ 2015-12-04 22:08 UTC (permalink / raw)
To: buildroot
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Changes v1 -> v2:
- remove extra space from license list
- update from md5 to sha256 hash
- add copy of qml/Qt3D directory (thanks to Jordon Wu for the hint)
---
package/qt5/Config.in | 1 +
package/qt5/qt53d/Config.in | 18 ++++++++++++++++++
package/qt5/qt53d/qt53d.hash | 2 ++
package/qt5/qt53d/qt53d.mk | 41 +++++++++++++++++++++++++++++++++++++++++
4 files changed, 62 insertions(+)
create mode 100644 package/qt5/qt53d/Config.in
create mode 100644 package/qt5/qt53d/qt53d.hash
create mode 100644 package/qt5/qt53d/qt53d.mk
diff --git a/package/qt5/Config.in b/package/qt5/Config.in
index 22fd0c0..568fadb 100644
--- a/package/qt5/Config.in
+++ b/package/qt5/Config.in
@@ -41,6 +41,7 @@ source "package/qt5/qt5quickcontrols/Config.in"
source "package/qt5/qt5sensors/Config.in"
source "package/qt5/qt5serialport/Config.in"
source "package/qt5/qt5svg/Config.in"
+source "package/qt5/qt53d/Config.in"
source "package/qt5/qt5webchannel/Config.in"
source "package/qt5/qt5websockets/Config.in"
source "package/qt5/qt5x11extras/Config.in"
diff --git a/package/qt5/qt53d/Config.in b/package/qt5/qt53d/Config.in
new file mode 100644
index 0000000..d350922
--- /dev/null
+++ b/package/qt5/qt53d/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_QT53D
+ bool "qt53d"
+ select BR2_PACKAGE_QT5BASE
+ select BR2_PACKAGE_QT5BASE_GUI
+ select BR2_PACKAGE_QT5DECLARATIVE
+ select BR2_PACKAGE_QT5DECLARATIVE_QUICK
+ depends on BR2_PACKAGE_QT5_JSCORE_AVAILABLE # qt5declarative
+ depends on BR2_PACKAGE_QT5_GL_AVAILABLE # qt5declarative_quick
+ help
+ Qt is a cross-platform application and UI framework for
+ developers using C++.
+
+ This package corresponds to the qt53d module.
+
+ http://doc.qt.io/qt-5/qt3d-index.html
+
+comment "qt53d module needs an OpenGL-capable backend"
+ depends on !BR2_PACKAGE_QT5_GL_AVAILABLE
diff --git a/package/qt5/qt53d/qt53d.hash b/package/qt5/qt53d/qt53d.hash
new file mode 100644
index 0000000..0ba111e
--- /dev/null
+++ b/package/qt5/qt53d/qt53d.hash
@@ -0,0 +1,2 @@
+# Hash from http://download.qt.io/official_releases/qt/5.5/5.5.0/submodules/qt3d-opensource-src-5.5.0.tar.xz.mirrorlist
+sha256 bf6c54fbb6f279e9bd6fd67f7faa8e61ac4273baa06a56f8946346adc8c3568e qt3d-opensource-src-5.5.0.tar.xz
diff --git a/package/qt5/qt53d/qt53d.mk b/package/qt5/qt53d/qt53d.mk
new file mode 100644
index 0000000..810242b
--- /dev/null
+++ b/package/qt5/qt53d/qt53d.mk
@@ -0,0 +1,41 @@
+################################################################################
+#
+# qt53d
+#
+################################################################################
+
+QT53D_VERSION = $(QT5_VERSION)
+QT53D_SITE = $(QT5_SITE)
+QT53D_SOURCE = qt3d-opensource-src-$(QT5SVG_VERSION).tar.xz
+QT53D_DEPENDENCIES = qt5base qt5declarative
+QT53D_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_QT5BASE_LICENSE_APPROVED),y)
+QT53D_LICENSE = GPLv2+ or LGPLv3
+QT53D_LICENSE_FILES = LICENSE.GPL LICENSE.LGPLv3
+else
+QT53D_LICENSE = Commercial license
+QT53D_REDISTRIBUTE = NO
+endif
+
+define QT53D_CONFIGURE_CMDS
+ (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake)
+endef
+
+define QT53D_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
+define QT53D_INSTALL_STAGING_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install
+ $(QT5_LA_PRL_FILES_FIXUP)
+endef
+
+ifeq ($(BR2_STATIC_LIBS),)
+define QT53D_INSTALL_TARGET_CMDS
+ cp -dpf $(STAGING_DIR)/usr/lib/libQt53D*.so.* $(TARGET_DIR)/usr/lib
+ cp -dpfr $(STAGING_DIR)/usr/qml/Qt3D $(TARGET_DIR)/usr/qml
+endef
+endif
+
+$(eval $(generic-package))
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2] qt5/qt53d: new package
2015-12-04 22:08 [Buildroot] [PATCH v2] qt5/qt53d: new package Peter Seiderer
@ 2015-12-18 21:03 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-12-18 21:03 UTC (permalink / raw)
To: buildroot
Dear Peter Seiderer,
On Fri, 4 Dec 2015 23:08:14 +0100, Peter Seiderer wrote:
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
I've applied after doing a few changes. See below.
> diff --git a/package/qt5/Config.in b/package/qt5/Config.in
> index 22fd0c0..568fadb 100644
> --- a/package/qt5/Config.in
> +++ b/package/qt5/Config.in
> @@ -41,6 +41,7 @@ source "package/qt5/qt5quickcontrols/Config.in"
> source "package/qt5/qt5sensors/Config.in"
> source "package/qt5/qt5serialport/Config.in"
> source "package/qt5/qt5svg/Config.in"
> +source "package/qt5/qt53d/Config.in"
Alphabetic ordering should have been used here.
> +comment "qt53d module needs an OpenGL-capable backend"
> + depends on !BR2_PACKAGE_QT5_GL_AVAILABLE
This line was indented with spaces, while a tab should be used. Also,
the comment should only be displayed when
BR2_PACKAGE_QT5_JSCORE_AVAILABLE is met.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-18 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-04 22:08 [Buildroot] [PATCH v2] qt5/qt53d: new package Peter Seiderer
2015-12-18 21:03 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox