From 3962746f51b4585f7aba17d3b1621265189f3af7 Mon Sep 17 00:00:00 2001 From: Russ Webber Date: Fri, 10 May 2019 15:35:29 +1000 Subject: testing/assimp: new aport http://www.assimp.org/ Open Asset Import Library imports and exports 3D model formats. Closes GH-7762 --- testing/assimp/01-rm-revision-test.patch | 12 +++++++++ testing/assimp/APKBUILD | 43 ++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 testing/assimp/01-rm-revision-test.patch create mode 100644 testing/assimp/APKBUILD (limited to 'testing/assimp') diff --git a/testing/assimp/01-rm-revision-test.patch b/testing/assimp/01-rm-revision-test.patch new file mode 100644 index 0000000000..28d0871485 --- /dev/null +++ b/testing/assimp/01-rm-revision-test.patch @@ -0,0 +1,12 @@ +--- src/test/unit/utVersion.cpp.orig ++++ src/test/unit/utVersion.cpp +@@ -65,7 +65,6 @@ + EXPECT_NE( aiGetCompileFlags(), 0U ); + } + +-TEST_F( utVersion, aiGetVersionRevisionTest ) { ++/*TEST_F( utVersion, aiGetVersionRevisionTest ) { + EXPECT_NE( aiGetVersionRevision(), 0U ); +-} +- ++}*/ diff --git a/testing/assimp/APKBUILD b/testing/assimp/APKBUILD new file mode 100644 index 0000000000..5c031b5a4d --- /dev/null +++ b/testing/assimp/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Russ Webber +# Maintainer: Russ Webber +pkgname=assimp +pkgver=4.1.0 +pkgrel=0 +pkgdesc="Open Asset Import Library imports and exports 3D model formats." +url="http://www.assimp.org/" +arch="all" +license="BSD-3-Clause" +makedepends="cmake zlib-dev minizip-dev" +subpackages="$pkgname-dev" +source="assimp-$pkgver.tar.gz::https://github.com/assimp/assimp/archive/v$pkgver.tar.gz + 01-rm-revision-test.patch" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DASSIMP_BUILD_TESTS=True \ + ${CMAKE_CROSSOPTS} . + make +} + +check() { + cd "$builddir"/bin + ./unit +} + +package() { + make DESTDIR="$pkgdir" install + rm -vf "$pkgdir"/usr/lib/libIrrXML.a +} + +sha512sums="5f1292de873ae16c9921d1d44f2871474d74c0ddfd76cc928a7d9b3e03aa6eca4cc72af0513da20a86d09c55d48646e610fd4a4f2b05364f08ad09cf27cbc67a assimp-4.1.0.tar.gz +4cbcf0d8c91a5d727de25af2444f9a997e111b8cc3cfb951ec7f1ad4f4d0a1bce5300a853a3788a3da787245fd373bfbf9a0f767ec902343e47c366c070b28f3 01-rm-revision-test.patch" -- cgit v1.2.3