summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD.M.D. Ljungmark <spider@gentoo.org>2002-03-31 20:53:17 +0000
committerD.M.D. Ljungmark <spider@gentoo.org>2002-03-31 20:53:17 +0000
commit934846ae6c115b40f882248b5609cba2c34756cb (patch)
treecda65cd71c34f69a3cb00ce6862ec35ded683a78
parentdep fixum (diff)
downloadgentoo-2-934846ae6c115b40f882248b5609cba2c34756cb.tar.gz
gentoo-2-934846ae6c115b40f882248b5609cba2c34756cb.tar.bz2
gentoo-2-934846ae6c115b40f882248b5609cba2c34756cb.zip
Adding PovRay 3.1g to portage, no linux distribution is complete without
a 3D rendering engine ;)
-rw-r--r--media-gfx/povray/ChangeLog8
-rw-r--r--media-gfx/povray/files/digest-povray-3.1g-r12
-rw-r--r--media-gfx/povray/files/gentoo.patch37
-rw-r--r--media-gfx/povray/povray-3.1g-r1.ebuild43
4 files changed, 90 insertions, 0 deletions
diff --git a/media-gfx/povray/ChangeLog b/media-gfx/povray/ChangeLog
new file mode 100644
index 000000000000..d776cc87eece
--- /dev/null
+++ b/media-gfx/povray/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/povray/ChangeLog,v 1.1 2002/03/31 20:53:16 spider Exp $
+
+*povray-3.1g-r1 (31 Mar 2002)
+ 31 Mar 2002; Spider <spider@gentoo.org>
+ Initial ebuild + patch now adheres to USE flags for svgalib X and tty versions.
+
diff --git a/media-gfx/povray/files/digest-povray-3.1g-r1 b/media-gfx/povray/files/digest-povray-3.1g-r1
new file mode 100644
index 000000000000..e082844cf5ca
--- /dev/null
+++ b/media-gfx/povray/files/digest-povray-3.1g-r1
@@ -0,0 +1,2 @@
+MD5 dff3b8f3bc2a6dd131a9d008d0f46295 povuni_d.tgz 913748
+MD5 6da91fb1d3d48cd44f46b831760d233f povuni_s.tgz 946513
diff --git a/media-gfx/povray/files/gentoo.patch b/media-gfx/povray/files/gentoo.patch
new file mode 100644
index 000000000000..c8f9448dba55
--- /dev/null
+++ b/media-gfx/povray/files/gentoo.patch
@@ -0,0 +1,37 @@
+Only in povray31-gentoo/source/unix: config.h
+diff -urw povray31/source/unix/makefile povray31-gentoo/source/unix/makefile
+--- povray31/source/unix/makefile Mon Nov 22 02:12:37 1999
++++ povray31-gentoo/source/unix/makefile Sun Mar 10 03:40:42 2002
+@@ -53,7 +53,7 @@
+ #CFLAGS = -O6 -finline-functions -ffast-math -c -ansi -m386 -DCPU=586 -DCOMPILER_VER=\".`uname`.$(CC)\" -DPOV_LIB_DIR=\"$(POVLIBDIR)\" $(SRCINC) $(LIBPNGINC) $(ZLIBINC)
+
+ # Linux compiler flags, Pentium II optimized
+-CFLAGS = -O6 -finline-functions -ffast-math -c -ansi -m386 -DCPU=686 -DCOMPILER_VER=\".`uname`.$(CC)\" -DPOV_LIB_DIR=\"$(POVLIBDIR)\" $(SRCINC) $(LIBPNGINC) $(ZLIBINC)
++CFLAGS = -O6 -finline-functions -ffast-math -c -ansi -march=i686 -mcpu=i686 -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -malign-functions=4 -DCPU=686 -DCOMPILER_VER=\".`uname`.$(CC)\" -DPOV_LIB_DIR=\"$(POVLIBDIR)\" $(SRCINC) $(LIBPNGINC) $(ZLIBINC)
+
+ # HPUX compiler flags
+ #CFLAGS = +O2 -finline-functions -c -Aa -D_HPUX_SOURCE -DCOMPILER_VER=\".`uname`.$(CC)\" $(SRCINC) $(LIBPNGINC) $(ZLIBINC)
+@@ -129,12 +129,12 @@
+ #default: svga
+
+ # Define the default POV-Ray library location
+-POVLIBDIR = /usr/local/lib/povray31
++POVLIBDIR = $(DESTDIR)/usr/lib/povray31
+
+ # Define the path under which you want POV-Ray files to be installed,
+ # typically /usr/local/bin, though Linux distributions may wish to
+ # alter this to /usr/bin
+-POVPATH = /usr/local
++POVPATH = $(DESTDIR)/usr
+
+ #----------------------------------------------------------------------
+ # There should be no compelling reason to customize the makefile beyond
+@@ -1591,7 +1591,7 @@
+ -@$(RM) $(ODIR)/svga$(OBJ) $(UTARGET) $(XTARGET) $(STARGET)
+
+ install:
+- -@cp povray.1 $(POVPATH)/man/man1
++ -@cp povray.1 $(POVPATH)/share/man/man1
+ -@if \
+ [ -x $(UTARGET) ]; \
+ then \
diff --git a/media-gfx/povray/povray-3.1g-r1.ebuild b/media-gfx/povray/povray-3.1g-r1.ebuild
new file mode 100644
index 000000000000..b903227322f7
--- /dev/null
+++ b/media-gfx/povray/povray-3.1g-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author: Achim Gottinger <achim@gentoo.org>
+# /space/gentoo/cvsroot/gentoo-x86/media-gfx/eog/eog-0.6-r2.ebuild,v 1.1 2002/02/19 21:20:08 azarah Exp
+
+S=${WORKDIR}/povray31
+DESCRIPTION="POV Ray- The Persistance of Vision Ray Tracer"
+SRC_URI="ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_s.tgz
+ ftp://ftp.povray.org/pub/povray/Official/Unix/povuni_d.tgz"
+HOMEPAGE="http://www.povray.org/"
+
+RDEPEND="virtual/glibc
+ svga? ( media-libs/svgalib )
+ X? ( virtual/x11 )
+ media-libs/libpng
+ sys-libs/zlib"
+
+src_compile() {
+ pwd
+ patch -p1 < ${FILESDIR}/gentoo.patch
+ cd source/unix
+ emake newunix || die
+
+ if [ "`use X`" ] ; then
+ emake newxwin || die
+ fi
+ if [ "`use svga`" ] ; then
+ make newsvga ||die
+ fi
+}
+
+src_install() {
+ pwd
+ cd source/unix
+ dodir usr/bin
+ dodir usr/lib
+ dodir usr/share/man/man1
+ make DESTDIR=${D} install || die
+ cd ${S}
+ rm -rf source
+ cd ..
+ mv povray31 ${D}/usr/lib
+}