aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2010-01-30 22:03:04 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2010-01-30 22:03:04 +0300
commitcd7e0d4abe6a16517ddf144040592b09ff8451b7 (patch)
tree65885d0ff56a45d2a17aca078f159f566070a789 /media-gfx
parentsci-libs/scikits_timeseries: Removed unnecessary blank line at end of (diff)
downloadsci-cd7e0d4abe6a16517ddf144040592b09ff8451b7.tar.gz
sci-cd7e0d4abe6a16517ddf144040592b09ff8451b7.tar.bz2
sci-cd7e0d4abe6a16517ddf144040592b09ff8451b7.zip
[media-gfx/tachyon] Initial import. thanks to Christopher Schwan
(Portage version: 2.2_rc62/git/Linux x86_64) (Signed Manifest commit)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/tachyon/ChangeLog9
-rw-r--r--media-gfx/tachyon/Manifest14
-rw-r--r--media-gfx/tachyon/metadata.xml8
-rw-r--r--media-gfx/tachyon/tachyon-0.98.7.ebuild134
4 files changed, 165 insertions, 0 deletions
diff --git a/media-gfx/tachyon/ChangeLog b/media-gfx/tachyon/ChangeLog
new file mode 100644
index 000000000..19fc1f6dd
--- /dev/null
+++ b/media-gfx/tachyon/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for media-gfx/tachyon
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*tachyon-0.98.7 (30 Jan 2010)
+
+ 30 Jan 2010; Alexey Shvetsov <alexxy@gentoo.org> +tachyon-0.98.7.ebuild:
+ Initial import. thanks to Christopher Schwan
+
diff --git a/media-gfx/tachyon/Manifest b/media-gfx/tachyon/Manifest
new file mode 100644
index 000000000..09c1bde33
--- /dev/null
+++ b/media-gfx/tachyon/Manifest
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST tachyon-0.98.7.tar.gz 3269840 RMD160 6fa50498f9f872b853edf67823ce68a64f3d3580 SHA1 b5881d914128c93feab393d53a87237beb41a9ce SHA256 f22b86ed8c85bb12abc20c703f01238bce676c097dae66c81a6bbb7c08a60341
+EBUILD tachyon-0.98.7.ebuild 2945 RMD160 719228e1a7f5da53c7b3868da4ddda2584eb2c0c SHA1 419d34e36f3cd747fe4ffe83e7299912675c742c SHA256 5c0e757175d6895c15758f1949163b4de8a695c0175d939c8c1db4cd730632e9
+MISC ChangeLog 272 RMD160 2fdfcbae8d2df79ec80e6313b746227a49fc8adb SHA1 949d9ee6942b8ccd42e2d00dd15affce03f658c8 SHA256 23bd26e010abb20f78637a35b5d7f6761dcac1153c9dffc60f25f78aa9fe9bdd
+MISC metadata.xml 218 RMD160 c5d041e330d9d9ff361d7951db2ed25a04792dcb SHA1 cb86590d33bc69bd1f5bc4d13ef678cbfeacf286 SHA256 76a4637908a65fd7f6ffafb723f578a4a5e7e040b5f0229a368853284e562a78
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.14 (GNU/Linux)
+
+iEYEARECAAYFAktkgmgACgkQ5BmOA85PVLicJgCgqrKtYlV1UBLSoy7IEv5z3Mjp
+WV0AoJ7978pQk2HFXO7wxTw8RtJ5CmYr
+=ghOH
+-----END PGP SIGNATURE-----
diff --git a/media-gfx/tachyon/metadata.xml b/media-gfx/tachyon/metadata.xml
new file mode 100644
index 000000000..b492c0347
--- /dev/null
+++ b/media-gfx/tachyon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+ <email>alexxy@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/media-gfx/tachyon/tachyon-0.98.7.ebuild b/media-gfx/tachyon/tachyon-0.98.7.ebuild
new file mode 100644
index 000000000..c6a65c44c
--- /dev/null
+++ b/media-gfx/tachyon/tachyon-0.98.7.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="A portable, high performance parallel ray tracing system"
+HOMEPAGE="http://jedi.ks.uiuc.edu/~johns/raytracer/"
+SRC_URI="http://jedi.ks.uiuc.edu/~johns/raytracer/files/${PV}/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples jpeg mpi opengl png threads"
+
+RESTRICT="mirror"
+
+DEPEND="jpeg? ( media-libs/jpeg )
+ mpi? ( virtual/mpi )
+ opengl? ( virtual/opengl )
+ png? ( media-libs/libpng )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}/unix"
+
+# TODO: Test on alpha, ia64, ppc
+# TODO: MPI: Depend on lam or virtual ? Test MPI
+# TODO: Check for threads dependencies
+# TODO: add other architectures
+# TODO: X, Motif, MBOX, Open Media Framework, Spaceball I/O, MGF ?
+
+TACHYON_MAKE_TARGET=
+
+pkg_setup() {
+ if use threads ; then
+ if use opengl ; then
+ TACHYON_MAKE_TARGET=linux-thr-ogl
+
+ if use mpi ; then
+ eerror "tachyon does not support MPI with OpenGL and threads"
+ die
+ fi
+ elif use mpi ; then
+ TACHYON_MAKE_TARGET=linux-lam-thr
+ elif use amd64 ; then
+ TACHYON_MAKE_TARGET=linux-64-thr
+ elif use ia64 ; then
+ TACHYON_MAKE_TARGET=linux-ia64-thr
+ else
+ TACHYON_MAKE_TARGET=linux-thr
+ fi
+
+ # TODO: Support for linux-athlon-thr ?
+ else
+ if use opengl ; then
+ # TODO: Support target: linux-lam-64-ogl
+
+ eerror "OpenGL is only available with USE=threads!"
+ elif use mpi ; then
+ if use amd64 ; then
+ TACHYON_MAKE_TARGET=linux-lam-64
+ else
+ TACHYON_MAKE_TARGET=linux-lam
+ fi
+
+ # TODO: Support for linux-mpi, linux-mpi-64 ?
+ elif use amd64 ; then
+ TACHYON_MAKE_TARGET=linux-64
+ elif use ppc ; then
+ TACHYON_MAKE_TARGET=linux-ppc
+ elif use alpha ; then
+ TACHYON_MAKE_TARGET=linux-alpha
+ elif use ia64 ; then
+ TACHYON_MAKE_TARGET=linux-ia64
+ else
+ TACHYON_MAKE_TARGET=linux
+ fi
+
+ # TODO: Support for linux-p4, linux-athlon, linux-ps2 ?
+ fi
+
+ if [[ -z "${TACHYON_MAKE_TARGET}" ]]; then
+ eerror "No target found, check use flags" && die
+ else
+ einfo "Using target: ${TACHYON_MAKE_TARGET}"
+ fi
+}
+
+src_prepare() {
+ if use jpeg ; then
+ sed -i \
+ -e "s:USEJPEG=:USEJPEG=-DUSEJPEG:g" \
+ -e "s:JPEGLIB=:JPEGLIB=-ljpeg:g" Make-config \
+ || die "sed failed"
+ fi
+
+ if use png ; then
+ sed -i \
+ -e "s:USEPNG=:USEPNG=-DUSEPNG:g" \
+ -e "s:PNGINC=:PNGINC=$(libpng-config --cflags):g" \
+ -e "s:PNGLIB=:PNGLIB=$(libpng-config --ldflags):g" Make-config \
+ || die "sed failed"
+ fi
+
+ if use mpi ; then
+ sed -i "s:MPIDIR=:MPIDIR=/usr:g" Make-config || die "sed failed"
+ fi
+}
+
+src_compile() {
+ emake "${TACHYON_MAKE_TARGET}" || die "emake failed"
+}
+
+src_install() {
+ cd ..
+ dodoc Changes README
+
+ if use doc ; then
+ dohtml docs/tachyon/*
+ fi
+
+ cd "compile/${TACHYON_MAKE_TARGET}"
+
+ dobin tachyon
+ dolib libtachyon.a
+
+ if use examples; then
+ cd "${S}/../scenes"
+ insinto "/usr/share/${PN}/examples"
+ doins *
+ fi
+}