summaryrefslogtreecommitdiff
path: root/repo/assimp
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-09 14:35:52 +0100
committerdavidovski <david@davidovski.xyz>2022-06-09 14:35:52 +0100
commitd1fc3393cca72e8e432f827f7624e38734fad6dc (patch)
tree7b971fbfc203ff017ad78852476bfcccee170971 /repo/assimp
parentccc722b7ed330198d82a3cf28ead76d6d107a70a (diff)
moved firmware to separate pacakges
Diffstat (limited to 'repo/assimp')
-rw-r--r--repo/assimp/assimp.xibuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/repo/assimp/assimp.xibuild b/repo/assimp/assimp.xibuild
new file mode 100644
index 0000000..045df31
--- /dev/null
+++ b/repo/assimp/assimp.xibuild
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+NAME="assimp"
+DESC="Open Asset Import Library imports and exports 3D model formats."
+
+MAKEDEPS=" cmake ninja zlib"
+
+PKG_VER=5.2.3
+SOURCE="https://github.com/assimp/assimp/archive/v$PKG_VER/assimp-v$PKG_VER.tar.gz"
+
+prepare() {
+ # fails for some unknown divine reason
+ sed -i \
+ -e "/AssimpAPITest_aiQuaternion/d" \
+ test/CMakeLists.txt
+
+ # tests report correct values, but comparison fails
+ case $CARCH in
+ x86)
+ sed -i \
+ -e "/AssimpAPITest_aiMatrix3x3/d" \
+ -e "/AssimpAPITest_aiMatrix4x4/d" \
+ -e "/utFastAtof/d" \
+ test/CMakeLists.txt
+ ;;
+ esac
+}
+
+build() {
+ cmake -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DASSIMP_BUILD_TESTS=True \
+ -DASSIMP_BUILD_MINIZIP=True # use vendored fork of minizip
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$PKG_DEST" cmake --install build
+ rm -f "$PKG_DEST"/usr/lib/libIrrXML.a
+}
+