1 |
commit: ebd7fc118c9f57434fb1fe19bf6e70db3f86f13e |
2 |
Author: Slawomir Lis <slis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 21 19:03:14 2019 +0000 |
4 |
Commit: Slawek Lis <slis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 21 19:03:35 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebd7fc11 |
7 |
|
8 |
media-libs/assimp: Strict aliasing error fix |
9 |
|
10 |
Closes: https://bugs.gentoo.org/677392 |
11 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
12 |
Signed-off-by: Slawek Lis <slis <AT> gentoo.org> |
13 |
|
14 |
media-libs/assimp/assimp-4.0.1-r1.ebuild | 67 ++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 67 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/assimp/assimp-4.0.1-r1.ebuild b/media-libs/assimp/assimp-4.0.1-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..0e4e53c3572 |
20 |
--- /dev/null |
21 |
+++ b/media-libs/assimp/assimp-4.0.1-r1.ebuild |
22 |
@@ -0,0 +1,67 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit cmake-utils flag-o-matic |
29 |
+ |
30 |
+DESCRIPTION="Importer library to import assets from 3D files" |
31 |
+HOMEPAGE="https://github.com/assimp/assimp" |
32 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="BSD" |
35 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
36 |
+IUSE="samples static test tools" |
37 |
+SLOT="0" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ dev-libs/boost:= |
41 |
+ sys-libs/zlib:=[minizip] |
42 |
+ samples? ( |
43 |
+ media-libs/freeglut |
44 |
+ virtual/opengl |
45 |
+ x11-libs/libX11 |
46 |
+ ) |
47 |
+ tools? ( |
48 |
+ dev-qt/qtcore:5 |
49 |
+ dev-qt/qtgui:5 |
50 |
+ dev-qt/qtopengl:5 |
51 |
+ dev-qt/qtwidgets:5 |
52 |
+ media-libs/devil |
53 |
+ virtual/opengl |
54 |
+ ) |
55 |
+" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ test? ( dev-cpp/gtest ) |
58 |
+" |
59 |
+ |
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}/findassimp-3.3.1.patch" |
62 |
+ "${FILESDIR}/${P}-qt-5.11.0.patch" |
63 |
+ "${FILESDIR}/${P}-disabletest.patch" # bug 659122 |
64 |
+) |
65 |
+ |
66 |
+src_configure() { |
67 |
+ append-flags -fno-strict-aliasing |
68 |
+ local mycmakeargs=( |
69 |
+ -DASSIMP_BUILD_SAMPLES=$(usex samples) |
70 |
+ -DASSIMP_BUILD_STATIC_LIB=$(usex static) |
71 |
+ -DASSIMP_BUILD_TESTS=$(usex test) |
72 |
+ -DASSIMP_BUILD_ASSIMP_TOOLS=$(usex tools) |
73 |
+ -DCMAKE_DEBUG_POSTFIX="" |
74 |
+ -DASSIMP_LIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)/" |
75 |
+ ) |
76 |
+ |
77 |
+ cmake-utils_src_configure |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ cmake-utils_src_install |
82 |
+ |
83 |
+ insinto /usr/share/cmake/Modules |
84 |
+ doins cmake-modules/Findassimp.cmake |
85 |
+} |
86 |
+ |
87 |
+src_test() { |
88 |
+ "${BUILD_DIR}/test/unit" || die |
89 |
+} |