summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Walls <malverian@gentoo.org>2003-12-14 17:44:58 +0000
committerPhilip Walls <malverian@gentoo.org>2003-12-14 17:44:58 +0000
commit3fe3aa5ad7861f55d2f8a618f412cfa52ef5bf7c (patch)
tree69441b4d6a3a8907aac3c80a3212b9f30a977af4
parentInitial import, closes bug 20163 (diff)
downloadhistorical-3fe3aa5ad7861f55d2f8a618f412cfa52ef5bf7c.tar.gz
historical-3fe3aa5ad7861f55d2f8a618f412cfa52ef5bf7c.tar.bz2
historical-3fe3aa5ad7861f55d2f8a618f412cfa52ef5bf7c.zip
Initial import, closes bug 20163
-rw-r--r--media-gfx/radiance/Manifest4
-rw-r--r--media-gfx/radiance/files/digest-radiance-3.51
-rw-r--r--media-gfx/radiance/metadata.xml11
-rw-r--r--media-gfx/radiance/radiance-3.5.ebuild101
4 files changed, 115 insertions, 2 deletions
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
+}