diff options
author | Jonathan Scruggs <j.scruggs@gmail.com> | 2018-01-29 15:26:52 +0000 |
---|---|---|
committer | Jonathan Scruggs <dracwyrm@gentoo.org> | 2018-01-30 20:59:39 +0000 |
commit | 65833f7dc77f342cfbd705d2548cc76f32de2d8e (patch) | |
tree | dc27f339244d3f1195a38e1f7a1681cb958391a7 /media-libs/opencollada/opencollada-1.6.62.ebuild | |
parent | app-emulation/free42: Bumps version to 2.0.12 (diff) | |
download | gentoo-65833f7dc77f342cfbd705d2548cc76f32de2d8e.tar.gz gentoo-65833f7dc77f342cfbd705d2548cc76f32de2d8e.tar.bz2 gentoo-65833f7dc77f342cfbd705d2548cc76f32de2d8e.zip |
media-libs/opencollada: add 1.6.2 release
Closes: https://github.com/gentoo/gentoo/pull/6997
Diffstat (limited to 'media-libs/opencollada/opencollada-1.6.62.ebuild')
-rw-r--r-- | media-libs/opencollada/opencollada-1.6.62.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/media-libs/opencollada/opencollada-1.6.62.ebuild b/media-libs/opencollada/opencollada-1.6.62.ebuild new file mode 100644 index 000000000000..4a0d0c352bd3 --- /dev/null +++ b/media-libs/opencollada/opencollada-1.6.62.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils versionator + +DESCRIPTION="Stream based read/write library for COLLADA files" +HOMEPAGE="http://www.opencollada.org/" +SRC_URI="https://github.com/KhronosGroup/OpenCOLLADA/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~ppc64 x86" +IUSE="static-libs" + +RDEPEND="dev-libs/libpcre + dev-libs/zziplib + media-libs/lib3ds + sys-libs/zlib + dev-libs/libxml2" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/OpenCOLLADA-${PV}" + +PATCHES=( "${FILESDIR}/${P}-cmake-fixes.patch" ) + +src_prepare() { + edos2unix CMakeLists.txt + + cmake-utils_src_prepare + + # Remove bundled depends that have portage equivalents + rm -rv Externals/{expat,lib3ds,LibXML,pcre,zziplib} || die + + # Remove unused build systems + rm -v Makefile scripts/{unixbuild.sh,vcproj2cmake.rb} || die + find "${S}" -name SConscript -delete || die +} + +src_configure() { + local mycmakeargs=( + -DUSE_SHARED=ON + -DUSE_STATIC=$(usex static-libs) + -DUSE_LIBXML=ON + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + echo "LDPATH=/usr/$(get_libdir)/opencollada" > "${T}"/99${PN} || die "echo failed" + doenvd "${T}"/99${PN} + + dobin "${BUILD_DIR}/bin/DAEValidator" + dobin "${BUILD_DIR}/bin/OpenCOLLADAValidator" + # Need to be in same directory as above binaries + docinto "/usr/bin" + dodoc "${BUILD_DIR}/bin/COLLADAPhysX3Schema.xsd" + dodoc "${BUILD_DIR}/bin/collada_schema_1_4_1.xsd" + dodoc "${BUILD_DIR}/bin/collada_schema_1_5.xsd" +} |