summaryrefslogtreecommitdiff
path: root/media-gfx/pixie
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/pixie')
-rw-r--r--media-gfx/pixie/Manifest8
-rw-r--r--media-gfx/pixie/files/Makefile.shaders15
-rw-r--r--media-gfx/pixie/files/pixie-2.2.6-autotools.patch22
-rw-r--r--media-gfx/pixie/files/pixie-2.2.6-zlib-1.2.5.2.patch73
-rw-r--r--media-gfx/pixie/metadata.xml14
-rw-r--r--media-gfx/pixie/pixie-2.2.6-r1.ebuild102
6 files changed, 234 insertions, 0 deletions
diff --git a/media-gfx/pixie/Manifest b/media-gfx/pixie/Manifest
new file mode 100644
index 000000000000..400ca5ba927e
--- /dev/null
+++ b/media-gfx/pixie/Manifest
@@ -0,0 +1,8 @@
+AUX Makefile.shaders 192 SHA256 c69be93547d8afda3526fbca5fc3e654b7a66f4d0be6f21c3da7d846cbd6eaca SHA512 61bdde5f5d74d9c1e66d023d21d86a86f5a00d8b318b53042bbb25c3459fe9c29ba228ef7baceb3c2361d6716981ccfb6192362c7a72813aa0ecaa92d724b365 WHIRLPOOL ee46b3f6ad905db00f02cb47994a8a890740723f6d70056b6c4adb736f935e1faaf10b56ba7c2fe2311b6315673c40941715c880faedb55731212f46d7cd6937
+AUX pixie-2.2.6-autotools.patch 680 SHA256 c9010ced0371bc3355af70369418d4d86570267169902eb2b3fde40f89ae2263 SHA512 7212c644118af829c3bdc87998eb009b9235fc608054a1ebd1bc0f00c2e6a00f3959c2176db3ad451276351678008d312ecefbf4736eaf63989965c55eb1ac92 WHIRLPOOL cc6542055bb221cb250f44127f7e1fb4ee1109f478ea133ff98187b6c07506bc0b11c4bf71d65108190f313c32e0c5aa9f138552d83f0466d660045875363a23
+AUX pixie-2.2.6-zlib-1.2.5.2.patch 2064 SHA256 493d0af97b30e4e07714ffa14da2434018fd35a7afd67a9ae760fd3756152ff3 SHA512 f0cc7956117dc09cae574d5042a897c0f5ef9b26040c75d4c7b2ceef317c89431cceb7d32f61b5b5151efdc043e8968ac9129e1d1d6a7ac9720f9056e6db05d3 WHIRLPOOL 03bdf376dd0d6ce58e1e812dcbfe137f465b74ab8d5f971aa5e3ca185204fd1f189253848b9da6df099153783246d46f36253c9e576991dbe0cbe1028e14cdf9
+DIST Pixie-src-2.2.6.tgz 9993504 SHA256 ffbbc404265aff3d4c0303ec91549708ffba8edefc0368ac119ae2e588f35037 SHA512 9b5256f5028d6091da293557e5385e53d8bdb2b3bfc7a89228b436b75424d7bd400d04e95cc04b71526aff026085f2bc2bd49e1ac0c54d3055f827fd5d05cc95 WHIRLPOOL 68599850df3ab0207d75e0c9944cce605002d550070062f83b440d0baf86386651d812f583e8831abeea2cbaf60e5f8160f7fc141eb7bf9e1712355914a27b37
+EBUILD pixie-2.2.6-r1.ebuild 2751 SHA256 563981ccc3455d5c6542a3ab6228224924a5b9b2da41c8ef22c79bd8a082a1ba SHA512 529cf7cec81dd0f773bb7acbab64d70c64ea0c9a31117aee310958593a9d5335bb4cd7520960eaf4fcb92f427ef8dad93d2ccea220516bd413e9581562cbe4f8 WHIRLPOOL 9a313c0dfd69dec8aa4bad95c6a0b0890a9141fea992f1f9914d97ff7f9793c6f2fb3b83eabd9f1ca34b03214fbe15ee3e33e6436a5327352888a8bc7316208a
+MISC ChangeLog 2981 SHA256 c316eca3eb3a5dd124aea6ffba6aaf6626c1bec59943543fd829fd97159da0e9 SHA512 f8e7ab6fa2b7a21d4a6bd06c74ad12d0b0bafd8a4270304efe1a6335e047de00a8ac4fc219da653e6a4e4592f2002ac5465dfef64f985c68c5db446ab124934f WHIRLPOOL 382a748ca5d4c96fe5d33ffa44f67a80c3b929f112f3fa7340ee4de0c8dbae737facb1cb54fe7e55b4de53e4a716946eb4f1823e0afc44221d3182d8826445ae
+MISC ChangeLog-2015 10382 SHA256 4c006af23b8ec95a6b3961c97461c478e1be50c0f187df58e6af90f2de24d1d8 SHA512 bd4125433c961dc9c09a67094aaf038db43c45566e11ae145d8b5975c3b7fdc5f1c80c5e490ec28294c0e806951eace65806110851472a0149e8fa57db580caf WHIRLPOOL 1fc7c8962f13e8752cb292549cc0f2110316bb9250aa9e3e1c0ac88b54ba2c23cb87a43b57eed4993108e1bde6fb35048d2937982804bac249f37b873861f0dd
+MISC metadata.xml 544 SHA256 9b565484c85fba59fbb5f75a547390f2efa0957244ae7aab5e89a3e405027c3d SHA512 961588ff38565e8a709b30f704d099676d73f0d1cbe5b266cc26542d511648a740ca430ef845b290c4ad0bc2ffdbe15706534b1f6421d975e66eedf6b6853c89 WHIRLPOOL 93259831d532a3180cfff14f72db922abd46b73d13aaf6b5592496b7c41666f2fd8962366d90ec1f0db61d8359afc328d7a8a1d00367433fbaeafba2a92c9f27
diff --git a/media-gfx/pixie/files/Makefile.shaders b/media-gfx/pixie/files/Makefile.shaders
new file mode 100644
index 000000000000..fbc261c0c9bf
--- /dev/null
+++ b/media-gfx/pixie/files/Makefile.shaders
@@ -0,0 +1,15 @@
+SDRC = ../src/sdrc/sdrc
+SDRCFLAGS +=
+
+%.sdr: %.sl
+ $(SDRC) $(SDRCFLAGS) $<
+
+OBJECT1 := $(wildcard *.sl)
+OBJECT := $(OBJECT1:.sl=.sdr)
+
+all: clean $(OBJECT)
+
+clean:
+ rm -f *.sdr
+
+.PHONY: clean
diff --git a/media-gfx/pixie/files/pixie-2.2.6-autotools.patch b/media-gfx/pixie/files/pixie-2.2.6-autotools.patch
new file mode 100644
index 000000000000..7fd9f0ce76b0
--- /dev/null
+++ b/media-gfx/pixie/files/pixie-2.2.6-autotools.patch
@@ -0,0 +1,22 @@
+--- a/src/ri/Makefile.in 2009-09-23 18:10:13.414866323 +0200
++++ b/src/ri/Makefile.in 2009-09-23 18:11:15.629864395 +0200
+@@ -214,7 +214,7 @@
+ host_os = @host_os@
+ host_vendor = @host_vendor@
+ htmldir = @htmldir@
+-includedir = $(prefix)/include
++includedir = @includedir@
+ infodir = @infodir@
+ install_sh = @install_sh@
+ libdir = @libdir@
+--- a/src/sdr/Makefile.in 2009-09-23 18:14:54.194865868 +0200
++++ b/src/sdr/Makefile.in 2009-09-23 18:15:18.297863856 +0200
+@@ -199,7 +199,7 @@
+ host_os = @host_os@
+ host_vendor = @host_vendor@
+ htmldir = @htmldir@
+-includedir = $(prefix)/include
++includedir = @includedir@
+ infodir = @infodir@
+ install_sh = @install_sh@
+ libdir = @libdir@
diff --git a/media-gfx/pixie/files/pixie-2.2.6-zlib-1.2.5.2.patch b/media-gfx/pixie/files/pixie-2.2.6-zlib-1.2.5.2.patch
new file mode 100644
index 000000000000..7e0afe3a7c27
--- /dev/null
+++ b/media-gfx/pixie/files/pixie-2.2.6-zlib-1.2.5.2.patch
@@ -0,0 +1,73 @@
+http://bugs.gentoo.org/406899
+
+--- a/src/ri/rib.l
++++ b/src/ri/rib.l
+@@ -17,7 +17,7 @@
+
+ // Overwrite the YYinput so that it uses libz
+ #undef YY_INPUT
+-#define YY_INPUT(buf, retval, maxlen) if ( (retval = gzread(ribin,buf,maxlen)) < 0) \
++#define YY_INPUT(buf, retval, maxlen) if ( (retval = gzread((gzFile)ribin,buf,maxlen)) < 0) \
+ YY_FATAL_ERROR( "input in flex scanner failed" );
+
+ #endif
+@@ -223,7 +223,7 @@
+ TRibFile *nextFile = ribStack->next;
+ rib_delete_buffer( YY_CURRENT_BUFFER );
+ #ifdef HAVE_ZLIB
+- gzclose(ribin);
++ gzclose((gzFile)ribin);
+ #else
+ fclose(ribin);
+ #endif
+@@ -243,7 +243,7 @@
+ rib_delete_buffer( YY_CURRENT_BUFFER );
+
+ #ifdef HAVE_ZLIB
+- gzclose(ribin);
++ gzclose((gzFile)ribin);
+ #else
+ fclose(ribin);
+ #endif
+--- a/src/ri/ribOut.cpp
++++ b/src/ri/ribOut.cpp
+@@ -162,7 +162,7 @@
+
+ #ifdef HAVE_ZLIB
+ if (outputCompressed) {
+- gzclose(outFile);
++ gzclose((gzFile)outFile);
+ } else {
+ fclose(outFile);
+ }
+--- a/src/ri/ribOut.h
++++ b/src/ri/ribOut.h
+@@ -237,7 +237,7 @@
+ const int l = vsprintf(scratch,mes,args);
+
+ #ifdef HAVE_ZLIB
+- if (outputCompressed) gzwrite(outFile,scratch,l);
++ if (outputCompressed) gzwrite((gzFile)outFile,scratch,l);
+ else fwrite(scratch,1,l,outFile);
+ #else
+ fwrite(scratch,1,l,outFile);
+@@ -258,7 +258,7 @@
+ const int l = vsprintf(scratch,mes,args);
+
+ #ifdef HAVE_ZLIB
+- if (outputCompressed) gzwrite(outFile,scratch,l);
++ if (outputCompressed) gzwrite((gzFile)outFile,scratch,l);
+ else fwrite(scratch,1,l,outFile);
+ #else
+ fwrite(scratch,1,l,outFile);
+--- a/src/ri/rib.y
++++ b/src/ri/rib.y
+@@ -2940,7 +2940,7 @@
+
+ if (ribin != NULL) {
+ #ifdef HAVE_ZLIB
+- gzclose(ribin);
++ gzclose((gzFile)ribin);
+ #else
+ fclose(ribin);
+ #endif
diff --git a/media-gfx/pixie/metadata.xml b/media-gfx/pixie/metadata.xml
new file mode 100644
index 000000000000..2f6247ed93fe
--- /dev/null
+++ b/media-gfx/pixie/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+ <longdescription>
+ Pixie is an open source photorealistic renderer that uses a RenderMan-like
+ interface. Features include programmable shading, motion blur, depth of
+ field, raytracing, scan-line rendering, occlusion culling, global
+ illumination, caustics ...
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">pixie</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/pixie/pixie-2.2.6-r1.ebuild b/media-gfx/pixie/pixie-2.2.6-r1.ebuild
new file mode 100644
index 000000000000..faa1c54ca862
--- /dev/null
+++ b/media-gfx/pixie/pixie-2.2.6-r1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+WANT_AUTOMAKE="1.10"
+
+inherit eutils multilib autotools
+
+MY_PN="Pixie"
+S="${WORKDIR}/${MY_PN}"
+
+DESCRIPTION="RenderMan like photorealistic renderer"
+HOMEPAGE="http://pixie.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-src-${PV}.tgz"
+
+LICENSE="GPL-2"
+IUSE="X static-libs"
+SLOT="0"
+KEYWORDS="amd64 ~ppc sparc x86"
+
+RDEPEND="virtual/jpeg
+ media-libs/tiff
+ media-libs/libpng
+ x11-libs/fltk:1[opengl]
+ media-libs/openexr
+ virtual/opengl
+ sys-libs/zlib
+ X? (
+ x11-libs/libXext
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libxcb
+ x11-libs/libXdmcp
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXt
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ sys-devel/bison"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-zlib-1.2.5.2.patch
+ # FIX: missing @includedir@
+ # https://sf.net/tracker/?func=detail&aid=2923415&group_id=59462&atid=491094
+ epatch "${FILESDIR}"/${P}-autotools.patch
+ eautoreconf
+
+ # FIX: removing pre-compiled shaders
+ # shaders must be removed before of their compilation or make
+ # parallelism can break the regeneration process, with resulting
+ # missing shaders.
+ rm "${S}"/shaders/*.sdr
+
+ # FIX: flex does not translate variable name in custom YY_DECL
+ sed -i -e '/define YY_DECL/ s/yylval/riblval/' src/ri/rib.l || die
+}
+
+src_configure() {
+ # NOTE: the option program-transform-name is used to avoid binary name
+ # conflict with package: mail-client/nmh (see #295996)
+ econf \
+ $(use_with X x) \
+ $(use_enable static-libs static) \
+ --includedir=/usr/include/pixie \
+ --libdir=/usr/$(get_libdir)/pixie \
+ --with-docdir=/usr/share/doc/${PF}/html \
+ --with-shaderdir=/usr/share/Pixie/shaders \
+ --with-ribdir=/usr/share/Pixie/ribs \
+ --with-texturedir=/usr/share/Pixie/textures \
+ --with-displaysdir=/usr/$(get_libdir)/pixie/displays \
+ --with-modulesdir=/usr/$(get_libdir)/pixie/modules \
+ --enable-openexr-threads \
+ --disable-static-fltk \
+ --mandir=/usr/share/man \
+ --bindir=/usr/bin \
+ --program-transform-name="s/show/pixie-show/"
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ # regenerating Pixie shaders - see upstream bug report:
+ # https://sf.net/tracker/?func=detail&aid=2923407&group_id=59462&atid=491094
+ einfo "Re-building Pixie Shaders for v${PV} format"
+ emake -f "${FILESDIR}/Makefile.shaders" -C "${S}/shaders" || die "shaders rebuild failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "installation failed."
+
+ insinto /usr/share/Pixie/textures
+ doins "${S}"/textures/*
+
+ # remove useless .la files
+ find "${D}" -name '*.la' -delete || die "removal of libtool archive files failed"
+
+ dodoc README AUTHORS ChangeLog || die
+}