diff options
author | Philip Walls <malverian@gentoo.org> | 2003-12-14 17:44:58 +0000 |
---|---|---|
committer | Philip Walls <malverian@gentoo.org> | 2003-12-14 17:44:58 +0000 |
commit | 67e7d615a6b7d3f269d957168648e11c6ac57076 (patch) | |
tree | 25ef10a029096deee2c950f1d917d87354b4ba8d /media-gfx | |
parent | Initial import, closes bug 20163 (diff) | |
download | gentoo-2-67e7d615a6b7d3f269d957168648e11c6ac57076.tar.gz gentoo-2-67e7d615a6b7d3f269d957168648e11c6ac57076.tar.bz2 gentoo-2-67e7d615a6b7d3f269d957168648e11c6ac57076.zip |
Initial import, closes bug 20163
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/radiance/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/radiance/Manifest | 4 | ||||
-rw-r--r-- | media-gfx/radiance/files/digest-radiance-3.5 | 1 | ||||
-rw-r--r-- | media-gfx/radiance/metadata.xml | 11 | ||||
-rw-r--r-- | media-gfx/radiance/radiance-3.5.ebuild | 101 |
5 files changed, 125 insertions, 2 deletions
diff --git a/media-gfx/radiance/ChangeLog b/media-gfx/radiance/ChangeLog new file mode 100644 index 000000000000..58bf45de4b65 --- /dev/null +++ b/media-gfx/radiance/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-gfx/radiance +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/radiance/ChangeLog,v 1.1 2003/12/14 17:44:53 malverian Exp $ + +*radiance-3.5 (14 Dec 2003) + + 14 Dec 2003; Philip Walls <malverian@gentoo.org radiance-3.5.ebuild + Initial import. Ebuild submitted by Derek Young <d@young.hostforweb.com>. + Thanks also to James Harlow <hythloday@gentoo.org> for an earlier + preliminary ebuild. Closes bug #20163 diff --git a/media-gfx/radiance/Manifest b/media-gfx/radiance/Manifest index ab6fd8cdaca8..d01fa5d76148 100644 --- a/media-gfx/radiance/Manifest +++ b/media-gfx/radiance/Manifest @@ -1,4 +1,4 @@ -MD5 5efcb40a23d73841423ad1dadcc467c3 radiance-3.5.ebuild 2292 +MD5 5c50018c00a91305d8dd8e2f804068a3 radiance-3.5.ebuild 2396 MD5 6f826a40d8aafc654f97acab145439df metadata.xml 1059 -MD5 c78074cc3fdc5f52ce1002ff4808eaf0 ChangeLog 412 +MD5 9c8034d7d594e92a8075495d660b47d8 ChangeLog 506 MD5 347f17131e4ad7db7b308e247e947de5 files/digest-radiance-3.5 59 diff --git a/media-gfx/radiance/files/digest-radiance-3.5 b/media-gfx/radiance/files/digest-radiance-3.5 new file mode 100644 index 000000000000..d857ec827362 --- /dev/null +++ b/media-gfx/radiance/files/digest-radiance-3.5 @@ -0,0 +1 @@ +MD5 7b4eea2658704b08cbb775c071985bf0 rad3R5.tar.gz 7159679 diff --git a/media-gfx/radiance/metadata.xml b/media-gfx/radiance/metadata.xml new file mode 100644 index 000000000000..69ae8939f410 --- /dev/null +++ b/media-gfx/radiance/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <herd>media-gfx</herd> + <maintainer> + <email>malverian@gentoo.org</email> + <name>Philip Walls</name> + </maintainer> + <longdescription>Radiance is intended to aid lighting designers and architects by predicting the light levels and appearance of a space prior to construction. The package includes programs for modeling and translating scene geometry, luminaire data and material properties, all of which are needed as input to the simulation. The lighting simulation itself uses ray tracing techniques to compute radiance values (ie. the quantity of light passing through a specific point in a specific direction), which are typically arranged to form a photographic quality image. The resulting image may be analyzed, displayed and manipulated within the package, and converted to other popular image file formats for export to other packages, facilitating the production of hard copy output.</longdescription> --> +</pkgmetadata> diff --git a/media-gfx/radiance/radiance-3.5.ebuild b/media-gfx/radiance/radiance-3.5.ebuild new file mode 100644 index 000000000000..54fec97f8065 --- /dev/null +++ b/media-gfx/radiance/radiance-3.5.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/radiance/radiance-3.5.ebuild,v 1.1 2003/12/14 17:44:53 malverian Exp $ + +MY_P=${P/./R} +MY_P=${MY_P/radiance-/rad} + +# Compilation fails with multiple jobs here +MAKEOPTS="" + +DESCRIPTION="Radiance is a suite of programs for the analysis and visualization of lighting in design" +HOMEPAGE="http://radsite.lbl.gov/radiance/" +SRC_URI="http://radsite.lbl.gov/${PN}/dist/$MY_P.tar.gz" + +LICENSE="Radiance" +SLOT="0" +KEYWORDS="~x86" + +RDEPEND="media-libs/tiff + virtual/x11" + +DEPEND="${RDEPEND}" + +src_unpack() { + + unpack ${A} + cd ${WORKDIR}/ray + mkdir -p src/lib + + # patch to not build libtiff that comes with Radiance + cp src/px/Rmakefile src/px/Rmakefile.orig + sed -e "s/\.\.\/lib\/libtiff\.a$//g" \ + src/px/Rmakefile.orig > src/px/Rmakefile + + # fix syntax error in standard.h + cp src/common/standard.h src/common/standard.h.orig + sed -e "s/error(et,em) else$/error(et,em); else/g" \ + src/common/standard.h.orig > src/common/standard.h + + # fix incorrect use of errno.h + cp src/cal/ev.c src/cal/ev.c.orig + sed -e "s/extern int errno;/#include <errno.h>/g" \ + src/cal/ev.c.orig > src/cal/ev.c + +} + +src_compile() { + mkdir -p ${T}/bin + mkdir -p ${T}/bin/dev + mkdir -p ${T}/lib/ray + + cd ${WORKDIR}/ray/src + local srcdirs="common meta cv gen ot rt px hd util cal" + for i in $srcdirs ; + do + pushd $i + emake "SPECIAL=" \ + "OPT=$CFLAGS -DSPEED=200" \ + "MACH=-Dlinux -L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -DBIGMEM" \ + ARCH=IBMPC "COMPAT=bmalloc.o erf.o getpagesize.o" \ + INSTDIR=${T}/bin \ + LIBDIR=${T}/lib/ray \ + CC=gcc "$@" -f Rmakefile install || die "Unable to build $i" + popd + done + + # TODO: figure out what to do with the dev files + mv ${T}/bin/dev ${T}/dev + + rm -r ${WORKDIR}/ray/lib/CVS + rm -r ${T}/lib/ray/CVS + rm -r ${WORKDIR}/ray/doc/notes/CVS +} + +src_install() { + mkdir -p ${D}/usr/bin + mkdir -p ${D}/usr/lib/ray + + dobin ${T}/bin/* + + cp -R ${T}/lib/ray ${D}/usr/lib/ray + cd ${WORKDIR}/ray + (cd lib ; tar -cf - *) | (cd ${D}/usr/lib/ray ; tar -xf -) + + # man = /usr/share/man + cd ${WORKDIR}/ray + doman doc/man/man1/*.1 + doman doc/ray.1 + doman doc/man/man3/*.3 + doman doc/man/man5/*.5 + prepallman + + docinto notes + dodoc doc/notes/* + + docinto pdf + dodoc doc/pdf/*.pdf + dodoc doc/ps/*.ps + dohtml doc/ray.html + prepalldocs +} |