summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlawomir Lis <slis@gentoo.org>2019-08-21 21:03:14 +0200
committerSlawomir Lis <slis@gentoo.org>2019-08-21 21:03:35 +0200
commitebd7fc118c9f57434fb1fe19bf6e70db3f86f13e (patch)
tree0784690bcb063c81c7604c3229a33bce78c84e3e /media-libs/assimp
parenttoolchain.eclass: fix gdb autoload path, bug #572480 (diff)
downloadgentoo-ebd7fc118c9f57434fb1fe19bf6e70db3f86f13e.tar.gz
gentoo-ebd7fc118c9f57434fb1fe19bf6e70db3f86f13e.tar.bz2
gentoo-ebd7fc118c9f57434fb1fe19bf6e70db3f86f13e.zip
media-libs/assimp: Strict aliasing error fix
Closes: https://bugs.gentoo.org/677392 Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Slawek Lis <slis@gentoo.org>
Diffstat (limited to 'media-libs/assimp')
-rw-r--r--media-libs/assimp/assimp-4.0.1-r1.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/media-libs/assimp/assimp-4.0.1-r1.ebuild b/media-libs/assimp/assimp-4.0.1-r1.ebuild
new file mode 100644
index 000000000000..0e4e53c35722
--- /dev/null
+++ b/media-libs/assimp/assimp-4.0.1-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils flag-o-matic
+
+DESCRIPTION="Importer library to import assets from 3D files"
+HOMEPAGE="https://github.com/assimp/assimp"
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="samples static test tools"
+SLOT="0"
+
+RDEPEND="
+ dev-libs/boost:=
+ sys-libs/zlib:=[minizip]
+ samples? (
+ media-libs/freeglut
+ virtual/opengl
+ x11-libs/libX11
+ )
+ tools? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtwidgets:5
+ media-libs/devil
+ virtual/opengl
+ )
+"
+DEPEND="${RDEPEND}
+ test? ( dev-cpp/gtest )
+"
+
+PATCHES=(
+ "${FILESDIR}/findassimp-3.3.1.patch"
+ "${FILESDIR}/${P}-qt-5.11.0.patch"
+ "${FILESDIR}/${P}-disabletest.patch" # bug 659122
+)
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+ local mycmakeargs=(
+ -DASSIMP_BUILD_SAMPLES=$(usex samples)
+ -DASSIMP_BUILD_STATIC_LIB=$(usex static)
+ -DASSIMP_BUILD_TESTS=$(usex test)
+ -DASSIMP_BUILD_ASSIMP_TOOLS=$(usex tools)
+ -DCMAKE_DEBUG_POSTFIX=""
+ -DASSIMP_LIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)/"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ insinto /usr/share/cmake/Modules
+ doins cmake-modules/Findassimp.cmake
+}
+
+src_test() {
+ "${BUILD_DIR}/test/unit" || die
+}