summaryrefslogtreecommitdiff
path: root/repo/qt5-qtquick3d
diff options
context:
space:
mode:
Diffstat (limited to 'repo/qt5-qtquick3d')
-rw-r--r--repo/qt5-qtquick3d/qt5-qtquick3d.xibuild42
-rw-r--r--repo/qt5-qtquick3d/qtquick3d-assimp.patch13
2 files changed, 55 insertions, 0 deletions
diff --git a/repo/qt5-qtquick3d/qt5-qtquick3d.xibuild b/repo/qt5-qtquick3d/qt5-qtquick3d.xibuild
new file mode 100644
index 0000000..34b6187
--- /dev/null
+++ b/repo/qt5-qtquick3d/qt5-qtquick3d.xibuild
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+NAME="qt5-qtquick3d"
+DESC="Qt module and API for defining 3D content in Qt Quick"
+
+MAKEDEPS=" assimp qt5-qtbase qt5-qtdeclarative"
+
+PKG_VER=5.15.3_git20210104
+_commit="68b30bb23e34426e7d6a4c243a42ae57dfe45c6b"
+SOURCE="https://invent.kde.org/qt/qt/qtquick3d/-/archive/$_commit/qtquick3d-$_commit.tar.gz"
+
+ADDITIONAL="
+qtquick3d-assimp.patch
+"
+
+prepare() {
+ apply_patches
+
+ # We need to make the build system think we're running in a git repository
+ # so it correctly symlinks during the build
+ mkdir .git
+}
+
+build() {
+ qmake-qt5
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make INSTALL_ROOT="$PKG_DEST" install
+
+ # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+ find "$PKG_DEST/usr/lib" -type f -name '*.prl' \
+ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+ install -d "$PKG_DEST"/usr/share/licenses
+ ln -s /usr/share/licenses/qt5-base "$PKG_DEST"/usr/share/licenses/qt5-qtquick3d
+}
diff --git a/repo/qt5-qtquick3d/qtquick3d-assimp.patch b/repo/qt5-qtquick3d/qtquick3d-assimp.patch
new file mode 100644
index 0000000..d70f501
--- /dev/null
+++ b/repo/qt5-qtquick3d/qtquick3d-assimp.patch
@@ -0,0 +1,13 @@
+diff --git a/src/plugins/assetimporters/assimp/assimp.pro b/src/plugins/assetimporters/assimp/assimp.pro
+index ca5c499..174a075 100644
+--- a/src/plugins/assetimporters/assimp/assimp.pro
++++ b/src/plugins/assetimporters/assimp/assimp.pro
+@@ -10,7 +10,7 @@ QT_FOR_CONFIG += assetimporters-private
+ include($$OUT_PWD/../qtassetimporters-config.pri)
+
+ qtConfig(system-assimp):!if(cross_compile:host_build) {
+- QMAKE_USE_PRIVATE += assimp
++ QMAKE_USE_PRIVATE += quick3d-assimp
+ } else {
+ include(../../../3rdparty/assimp/assimp.pri)
+ }