diff options
Diffstat (limited to 'media-libs/alembic/alembic-9999.ebuild')
-rw-r--r-- | media-libs/alembic/alembic-9999.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/media-libs/alembic/alembic-9999.ebuild b/media-libs/alembic/alembic-9999.ebuild new file mode 100644 index 0000000..33ed591 --- /dev/null +++ b/media-libs/alembic/alembic-9999.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# TODO: replace the alembic_bootstrap.py with proper gentoo methods (cmake eclass) +# TODO: add tests, add help + +EAPI=2 + +inherit eutils mercurial + +DESCRIPTION="Alembic is an open framework for storing and sharing 3D geometry data." +HOMEPAGE="http://code.google.com/p/alembic" +EHG_REPO_URI="https://code.google.com/p/alembic" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="examples doc" +RDEPEND="" +DEPEND=">=dev-util/cmake-2.8 + >=dev-libs/boost-1.44[static-libs] + >=media-libs/ilmbase-1.0.1[static-libs] + >=sci-libs/hdf5-1.8.7[-mpi] + doc? ( >=app-doc/doxygen-1.7.3 )" + +TMPBUILD="${WORKDIR}/alembic-build" +TMPINSTALL="${WORKDIR}/alembic-install" + +src_configure() { + mkdir ${TMPBUILD} && cd ${TMPBUILD} + S=${TMPBUILD} + + python ${WORKDIR}/${P}/build/bootstrap/alembic_bootstrap.py \ + --disable-prman --disable-maya --disable-arnold \ + --hdf5_include_dir=/usr/include \ + --hdf5_hdf5_library=/usr/lib/libhdf5.a \ + --boost_include_dir=${LIBS}/boost_install/include \ + --boost_thread_library=/usr/lib/libboost_thread-mt.a \ + --zlib_include_dir=/usr/include \ + --zlib_library=/usr/lib/libz.a \ + --ilmbase_include_dir=/usr/include/OpenEXR \ + --ilmbase_imath_library=/usr/lib/libImath.a \ + . +} + +src_compile() { + emake + + if use examples; then + cd ${S}/examples + emake all + fi +} + +src_install() { + mkdir ${TMPINSTALL} + + cd ${S} + emake DESTDIR=${TMPINSTALL} install + + dolib.a ${TMPINSTALL}/usr/local/alembic-1.0.0/lib/static/*.a + cp -r ${TMPINSTALL}/usr/local/alembic-1.0.0/include/Alembic ${D}/usr/include + + if use examples; then + dobin ${TMPBUILD}/examples/bin/AbcEcho/abcecho + dobin ${TMPBUILD}/examples/bin/AbcEcho/abcechobounds + dobin ${TMPBUILD}/examples/bin/AbcStitcher/abcstitcher + dobin ${TMPBUILD}/examples/bin/SimpleAbcViewer/SimpleAbcViewer + fi + + dodoc ${WORKDIR}/${P}/{ACKNOWLEDGEMENTS,FEEDBACK,LICENSE,MANIFEST,NEWS,README}.txt + + if use doc; then + cd ${WORKDIR}/${P} + doxygen + dohtml -r doc/html/* + fi +} |