From d1fc3393cca72e8e432f827f7624e38734fad6dc Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 9 Jun 2022 14:35:52 +0100 Subject: moved firmware to separate pacakges --- repo/assimp/assimp.xibuild | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 repo/assimp/assimp.xibuild (limited to 'repo/assimp/assimp.xibuild') 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 +} + -- cgit v1.2.1