summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@zonker.localdomain>2011-08-21 14:16:44 +0200
committerroot <root@zonker.localdomain>2011-08-21 14:16:44 +0200
commit705c4bd055b54ceaea30ce4361f9d0d57785f924 (patch)
tree3a3e4b6f0151d82f7fb1e5026a2beadbefce3495 /media-libs/alembic
downloadmistafunk-705c4bd055b54ceaea30ce4361f9d0d57785f924.tar.gz
mistafunk-705c4bd055b54ceaea30ce4361f9d0d57785f924.tar.bz2
mistafunk-705c4bd055b54ceaea30ce4361f9d0d57785f924.zip
import from svn
Diffstat (limited to 'media-libs/alembic')
-rw-r--r--media-libs/alembic/Manifest3
-rw-r--r--media-libs/alembic/alembic-1.0.2011080800.ebuild84
2 files changed, 87 insertions, 0 deletions
diff --git a/media-libs/alembic/Manifest b/media-libs/alembic/Manifest
new file mode 100644
index 0000000..248d2f8
--- /dev/null
+++ b/media-libs/alembic/Manifest
@@ -0,0 +1,3 @@
+DIST Alembic_1.0_2011080800.tgz 589273 RMD160 644f5e735cea8ae0412dc060bf861590d2ac7e24 SHA1 dd1e8340ce4c69d5c4ccb7364537bc4e8653baa1 SHA256 e15f1ad07c873ac27dd08812ae481c46f87b456f936d38d0224f91fdd1c47487
+EBUILD alembic-1.0.2011080800.ebuild 2230 RMD160 3fdc0b19d8a59fdb8a34ac020d8203d1b1f80393 SHA1 d1642421da25da097b1c67c903426b6a5066129f SHA256 0fa2bc72baefc2e068761122b03e7bd06731822cec0752f7379bdbbd1ab1531b
+EBUILD alembic-9999.ebuild 2041 RMD160 de599413bfd7288f9677743dc44287bd18276ee2 SHA1 1f1acbd5537952f324f5dccd11079e401f6574ab SHA256 363446482e107d4ab87c513327e23341fe1524911dcc424f0e556c086fd01198
diff --git a/media-libs/alembic/alembic-1.0.2011080800.ebuild b/media-libs/alembic/alembic-1.0.2011080800.ebuild
new file mode 100644
index 0000000..67495c8
--- /dev/null
+++ b/media-libs/alembic/alembic-1.0.2011080800.ebuild
@@ -0,0 +1,84 @@
+# 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 versionator
+
+DESCRIPTION="Alembic is an open framework for storing and sharing 3D geometry data that includes a C++ library, a file format, and client plugins and applications."
+HOMEPAGE="http://code.google.com/p/alembic"
+
+MY_PN="Alembic"
+MY_PV=$(replace_version_separator 2 '_')
+MY_P="${MY_PN}_${MY_PV}"
+
+SRC_URI="http://alembic.googlecode.com/files/${MY_P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+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}/${MY_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}/${MY_P}/{ACKNOWLEDGEMENTS,FEEDBACK,LICENSE,MANIFEST,NEWS,README}.txt
+
+ if use doc; then
+ cd ${WORKDIR}/${MY_P}
+ doxygen
+ dohtml -r doc/html/*
+ fi
+} \ No newline at end of file