summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlawomir Lis <slis@gentoo.org>2016-09-06 09:02:34 +0200
committerSlawomir Lis <slis@gentoo.org>2016-09-06 09:02:34 +0200
commitf8601c9036718d6d4722694c8d36b97bd417d8d0 (patch)
tree21ad8272884034b346d905715f955a16a96dcc79 /media-libs/assimp
parentdev-ruby/ruby2ruby: add ruby23 (diff)
downloadgentoo-f8601c9036718d6d4722694c8d36b97bd417d8d0.tar.gz
gentoo-f8601c9036718d6d4722694c8d36b97bd417d8d0.tar.bz2
gentoo-f8601c9036718d6d4722694c8d36b97bd417d8d0.zip
media-libs/assimp: install Findassimp cmake module
As reported in bug 592892 there is need to install Findassimp.cmake file in target system Reported-by: Grygoriy I. Fuchedzhy <grygoriy.fuchedzhy@gmail.com> Package-Manager: portage-2.3.0
Diffstat (limited to 'media-libs/assimp')
-rw-r--r--media-libs/assimp/assimp-3.2-r3.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/media-libs/assimp/assimp-3.2-r3.ebuild b/media-libs/assimp/assimp-3.2-r3.ebuild
new file mode 100644
index 000000000000..69d5b6a7de80
--- /dev/null
+++ b/media-libs/assimp/assimp-3.2-r3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils versionator multilib
+
+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 ~x86"
+IUSE="+boost samples static test tools"
+SLOT="0"
+
+RDEPEND="
+ boost? ( dev-libs/boost )
+ samples? ( x11-libs/libX11 virtual/opengl media-libs/freeglut )
+ sys-libs/zlib
+"
+DEPEND="${RDEPEND}
+ test? ( dev-cpp/gtest )
+"
+
+src_prepare() {
+ epatch "${FILESDIR}/test-cmakelists.patch"
+ epatch "${FILESDIR}/findassimp.patch"
+}
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_build samples ASSIMP_SAMPLES) \
+ $(cmake-utils_use_build tools ASSIMP_TOOLS) \
+ $(cmake-utils_use_build static STATIC_LIB) \
+ $(cmake-utils_use_enable !boost BOOST_WORKAROUND) \
+ $(cmake-utils_use_build test TESTS)
+ -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
+}