summaryrefslogtreecommitdiff
path: root/graphics/renderpark
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2003-02-03 10:03:40 +0000
committerMaho Nakata <maho@FreeBSD.org>2003-02-03 10:03:40 +0000
commit3585add922daea7fed1f50e24bce0c680c60e8e9 (patch)
tree141e7d521f22f60304d68f06f5868fc08219591f /graphics/renderpark
parentNew port: graphics/xrml Extensible scene graph library based on VRML'97 (diff)
graphics/renderpark System for physically based photo-realistic image synthesis
PR: 41105 Submitted by: Igor Pokrovsky <tiamat@telegraph.spb.ru> Reviewed by: knu (mentor)
Diffstat (limited to 'graphics/renderpark')
-rw-r--r--graphics/renderpark/Makefile100
-rw-r--r--graphics/renderpark/distinfo2
-rw-r--r--graphics/renderpark/files/patch-Config.site37
-rw-r--r--graphics/renderpark/files/patch-PHOTONMAP-photon.H11
-rw-r--r--graphics/renderpark/files/patch-patch.c20
-rw-r--r--graphics/renderpark/pkg-comment1
-rw-r--r--graphics/renderpark/pkg-descr24
-rw-r--r--graphics/renderpark/pkg-plist129
-rw-r--r--graphics/renderpark/scripts/cpp2c.sh10
9 files changed, 334 insertions, 0 deletions
diff --git a/graphics/renderpark/Makefile b/graphics/renderpark/Makefile
new file mode 100644
index 000000000000..ea72f9e3d0ce
--- /dev/null
+++ b/graphics/renderpark/Makefile
@@ -0,0 +1,100 @@
+# New ports collection makefile for: renderpark
+# Date created: 24 July 2002
+# Whom: Igor Pokrovsky <tiamat@telegraph.spb.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= renderpark
+PORTVERSION= 3.3
+CATEGORIES= graphics
+MASTER_SITES= ftp://ftp.cs.kuleuven.ac.be/pub/graphics/software/RenderPark/
+DISTNAME= RenderPark
+.ifdef (WITH_SCENES)
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} Scenes${EXTRACT_SUFX}
+.endif
+DIST_SUBDIR= ${DISTNAME}
+
+MAINTAINER= tiamat@telegraph.spb.ru
+
+.ifdef (WITH_XRML)
+LIB_DEPENDS= xrml.0:${PORTSDIR}/graphics/xrml
+.endif
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+WRKSRC2= ${WRKDIR}/Scenes
+
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+USE_MESA= yes
+USE_MOTIF= yes
+USE_REINPLACE= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 500000
+USE_GCC=2.95
+.endif
+
+.if !defined(WITH_SCENES)
+PLIST_SUB= WITH_SCENES="@comment "
+.else
+PLIST_SUB= WITH_SCENES=""
+.endif
+
+pre-everything:
+.ifndef (WITH_XRML)
+ @${ECHO} "Defining WITH_XRML=yes will allow you to read XRML input files"
+.endif
+.ifndef (WITH_SCENES)
+ @${ECHO} "Define WITH_SCENES=yes to install additional scenes package"
+.endif
+
+pre-patch:
+ @${RM} -f ${WRKSRC}/Config.site
+ @${CP} -f ${WRKSRC}/Config.FreeBSD ${WRKSRC}/Config.site
+ ${SETENV} ${SCRIPTS_ENV} \
+ REINPLACE_CMD="${REINPLACE_CMD}" \
+ FIND="${FIND}" \
+ GREP="${GREP}" \
+ ${SH} ${SCRIPTDIR}/cpp2c.sh
+
+post-patch:
+.ifdef (WITH_XRML)
+ @${ECHO_CMD} "" >> ${WRKSRC}/Config.site
+ @${ECHO_CMD} "####################################################" >> ${WRKSRC}/Config.site
+ @${ECHO_CMD} "# VRML input support (requires XRML library)" >> ${WRKSRC}/Config.site
+ @${ECHO_CMD} "VRMLHOME = ${X11BASE}" >> ${WRKSRC}/Config.site
+ @${ECHO_CMD} "VRMLFLAGS = -I${X11BASE}/include/xrml" >> ${WRKSRC}/Config.site
+ @${ECHO_CMD} "VRMLLIB = -L${X11BASE}/lib -lxrml" >> ${WRKSRC}/Config.site
+.endif
+ @${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
+ s|%%CXX%%|${CXX}|g ;\
+ s|%%CFLAGS%%|${CFLAGS}|g' ${WRKSRC}/Config.site
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/rpk ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/${DISTNAME} ${PREFIX}/lib/X11/app-defaults
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/SCENES/*.mgf ${EXAMPLESDIR}
+
+.ifdef (WITH_SCENES)
+ @${MKDIR} ${EXAMPLESDIR}/Scenes
+ ${INSTALL_DATA} ${WRKSRC2}/*.mgf ${EXAMPLESDIR}/Scenes
+ ${INSTALL_DATA} ${WRKSRC2}/README ${EXAMPLESDIR}/Scenes
+ @${MKDIR} ${EXAMPLESDIR}/Scenes/Hospital
+ ${INSTALL_DATA} ${WRKSRC2}/Hospital/*.mgf ${EXAMPLESDIR}/Scenes/Hospital
+ @${MKDIR} ${EXAMPLESDIR}/Scenes/Materials
+ ${INSTALL_DATA} ${WRKSRC2}/Materials/*.mgf ${EXAMPLESDIR}/Scenes/Materials
+.endif
+
+.ifndef (NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOC/*.* ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}/SourceCode
+ ${INSTALL_DATA} ${WRKSRC}/DOC/SourceCode/* ${DOCSDIR}/SourceCode
+ @${MKDIR} ${DOCSDIR}/UserGuide
+ ${INSTALL_DATA} ${WRKSRC}/DOC/UserGuide/* ${DOCSDIR}/UserGuide
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/renderpark/distinfo b/graphics/renderpark/distinfo
new file mode 100644
index 000000000000..1fd60d8ee8a0
--- /dev/null
+++ b/graphics/renderpark/distinfo
@@ -0,0 +1,2 @@
+MD5 (RenderPark/RenderPark.tar.gz) = 8c5c80b580bb903aa60a01df0634f8c5
+MD5 (RenderPark/Scenes.tar.gz) = 8e99b6874f058303df263e27ef5720e5
diff --git a/graphics/renderpark/files/patch-Config.site b/graphics/renderpark/files/patch-Config.site
new file mode 100644
index 000000000000..cf66f972298c
--- /dev/null
+++ b/graphics/renderpark/files/patch-Config.site
@@ -0,0 +1,37 @@
+--- Config.site.orig Fri Jan 31 20:31:11 2003
++++ Config.site Fri Jan 31 20:40:09 2003
+@@ -2,27 +2,28 @@
+ # contributed by Bertrand Petit elrond@phoe.frmug.org 23-feb-98
+
+ # with GCC:
+-CC = gcc
++CC = %%CC%%
++CXX = %%CXX%%
+ MAKEDEPEND = gcc -M
+ PROFLAGS = # -pg # for profiling
+-DEBUGFLAGS = -g # for debugging
+-OPTFLAGS = -O3 -Wall -pedantic -ansi
++DEBUGFLAGS = # -g # for debugging
++OPTFLAGS = %%CFLAGS%% #-O3 -Wall -pedantic -ansi -Wno-long-long
+
+ ################################################################
+ # OpenGL/Mesa
+ DRIVER = opengl
+
+ # Mesa (free OpenGL-like library)
+-MESAHOME = /usr/local
++MESAHOME = ${X11BASE}
+ DRIVERFLAGS = -I$(MESAHOME)/include
+ DRIVERLIBS = -L$(MESAHOME)/lib -lGLU -lGL
+
+ ################################################################
+-X11HOME = /usr/X11R6
++X11HOME = ${X11BASE}
+ XINCLUDES = -I$(X11HOME)/include
+ XLIBS = -L$(X11HOME)/lib -lXt -lXmu -lXext -lX11
+
+-MOTIFHOME = /usr/local
++MOTIFHOME = ${X11BASE}
+ MOTIFINCLUDES = -I$(MOTIFHOME)/include
+ # -lXpm library necessary for Motif >=2.0, not for Motif <2.0
+ MOTIFLIBS = -L$(MOTIFHOME)/lib -lXm -lXpm
diff --git a/graphics/renderpark/files/patch-PHOTONMAP-photon.H b/graphics/renderpark/files/patch-PHOTONMAP-photon.H
new file mode 100644
index 000000000000..4fc0f1f05dd6
--- /dev/null
+++ b/graphics/renderpark/files/patch-PHOTONMAP-photon.H
@@ -0,0 +1,11 @@
+--- PHOTONMAP/photon.H~ Thu Aug 9 18:03:19 2001
++++ PHOTONMAP/photon.H Fri Jan 31 20:34:54 2003
+@@ -3,6 +3,8 @@
+ #ifndef _PHOTON_H_
+ #define _PHOTON_H_
+
++#include <string.h>
++
+ #include <vector.h>
+ #include <color.h>
+ #include <spherical.h>
diff --git a/graphics/renderpark/files/patch-patch.c b/graphics/renderpark/files/patch-patch.c
new file mode 100644
index 000000000000..33a32de8c375
--- /dev/null
+++ b/graphics/renderpark/files/patch-patch.c
@@ -0,0 +1,20 @@
+--- patch.c~ Fri Jul 26 15:36:27 2002
++++ patch.c Fri Jul 26 15:37:31 2002
+@@ -1074,7 +1074,7 @@
+ V2Sub (D, C, CD); V2Sub (D, A, AD);
+ V2Add (CD, AB, AE); V2Negate (AE); V2Sub (M, A, AM);
+
+- if (fabs(DETERMINANT(AB, CD)) < EPSILON) /* case AB /* CD */ */
++ if (fabs(DETERMINANT(AB, CD)) < EPSILON) /* case AB CD */
+ {
+ V2Sub (AB, CD, Vector);
+ v = DETERMINANT(AM, Vector) / DETERMINANT(AD, Vector);
+@@ -1091,7 +1091,7 @@
+ }
+ #endif
+ }
+- else if (fabs(DETERMINANT(BC, AD)) < EPSILON) /* case AD /* BC */ */
++ else if (fabs(DETERMINANT(BC, AD)) < EPSILON) /* case AD BC */
+ {
+ V2Add (AD, BC, Vector);
+ u = DETERMINANT(AM, Vector) / DETERMINANT(AB, Vector);
diff --git a/graphics/renderpark/pkg-comment b/graphics/renderpark/pkg-comment
new file mode 100644
index 000000000000..6dc9ab639f5f
--- /dev/null
+++ b/graphics/renderpark/pkg-comment
@@ -0,0 +1 @@
+System for physically based photo-realistic image synthesis
diff --git a/graphics/renderpark/pkg-descr b/graphics/renderpark/pkg-descr
new file mode 100644
index 000000000000..6ae84e9d34c4
--- /dev/null
+++ b/graphics/renderpark/pkg-descr
@@ -0,0 +1,24 @@
+RenderPark is a system for physically based photo-realistic image synthesis.
+
+It is providing a solid implementation of a wide variety of algorithms.
+Features:
+* reads models in MGF and new XRML (extended VRML'97) file format.
+* images can be saved in PPM, TIFF and Radiance PIC format, for which numerous
+ convertors exist.
+* supports high dynamic range TIFF and PIC image output, suitable for lighting
+ analysis purposes, e.g. using Radiance tools, or experimentation with tone
+ mapping techniques ...
+* illuminated models after radiosity can be saved in VRML'97 format.
+* X-Windows/Motif based user interface.
+* interactive navigation using graphics hardware (OpenGL) with various
+ optimizations that make it suited for large models.
+* wide range of tone mapping operators + calibrated monitor support.
+* batch rendering with control through command line arguments or
+ Inter Process Communication.
+* rendering into an external canvas window makes RenderPark behave as a
+ "plug-in" in other applications.
+
+WWW: http://www.renderpark.be/
+
+- Igor Pokrovsky
+tiamat@telegraph.spb.ru
diff --git a/graphics/renderpark/pkg-plist b/graphics/renderpark/pkg-plist
new file mode 100644
index 000000000000..a1b72bc3e22f
--- /dev/null
+++ b/graphics/renderpark/pkg-plist
@@ -0,0 +1,129 @@
+bin/rpk
+lib/X11/app-defaults/RenderPark
+%%PORTDOCS%%%%DOCSDIR%%/102-0281_IMG_small.jpg
+%%PORTDOCS%%%%DOCSDIR%%/ar_small.gif
+%%PORTDOCS%%%%DOCSDIR%%/ashikmin_small.jpg
+%%PORTDOCS%%%%DOCSDIR%%/authors.html
+%%PORTDOCS%%%%DOCSDIR%%/background1.jpg
+%%PORTDOCS%%%%DOCSDIR%%/banner.html
+%%PORTDOCS%%%%DOCSDIR%%/boom5_pmap_small.jpg
+%%PORTDOCS%%%%DOCSDIR%%/bugs.html
+%%PORTDOCS%%%%DOCSDIR%%/changes.html
+%%PORTDOCS%%%%DOCSDIR%%/documentation.html
+%%PORTDOCS%%%%DOCSDIR%%/download.html
+%%PORTDOCS%%%%DOCSDIR%%/egg_caustic_small.jpg
+%%PORTDOCS%%%%DOCSDIR%%/eggs_small.jpg
+%%PORTDOCS%%%%DOCSDIR%%/features.html
+%%PORTDOCS%%%%DOCSDIR%%/flags.html
+%%PORTDOCS%%%%DOCSDIR%%/footer.html
+%%PORTDOCS%%%%DOCSDIR%%/frameset.html
+%%PORTDOCS%%%%DOCSDIR%%/gallery.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/intro.html
+%%PORTDOCS%%%%DOCSDIR%%/installation.html
+%%PORTDOCS%%%%DOCSDIR%%/knop-e1-h1_small.jpg
+%%PORTDOCS%%%%DOCSDIR%%/knot2.jpg
+%%PORTDOCS%%%%DOCSDIR%%/knot2_small.jpg
+%%PORTDOCS%%%%DOCSDIR%%/license.html
+%%PORTDOCS%%%%DOCSDIR%%/menu.html
+%%PORTDOCS%%%%DOCSDIR%%/prerequisites.html
+%%PORTDOCS%%%%DOCSDIR%%/template.html
+%%PORTDOCS%%%%DOCSDIR%%/SourceCode/rpkrt_fig.eps
+%%PORTDOCS%%%%DOCSDIR%%/SourceCode/rpkrt_fig.fig
+%%PORTDOCS%%%%DOCSDIR%%/SourceCode/sourcecode.pdf
+%%PORTDOCS%%%%DOCSDIR%%/SourceCode/sourcecode.tex
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/bidirpath.html
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/bidirpathcontrolpanel.gif
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/bidirpathtracing.jpg
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/cameramenu.jpg
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/filemenu.html
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/filemenu.jpg
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/galerkin.html
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/galerkincontrol.gif
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/index.html
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/loadfilebox.gif
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/photonmap.html
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/photonmapconstruction.jpg
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/photonmapdialog.gif
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/radiancemenu.jpg
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/randwalkrad.html
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/randwalkradcontrol.gif
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/raytracingmenu.jpg
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/scenestats.gif
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/renderingmenu.html
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/renderingmenu.jpg
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/screenshot.jpg
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/stochasticraytracing.html
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/stochasticraytracing.jpg
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/stochasticraytracingcontroldialog.gif
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/stochjacobi.html
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/stochjacobicontrol.gif
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/template.html
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/tonemappingmenu.jpg
+%%PORTDOCS%%%%DOCSDIR%%/UserGuide/userguide.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/SourceCode
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/UserGuide
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/caustic.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/chair.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/classroom.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/corridor.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/cube-sr.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/cube.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/glas_with_cyl.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/glasssphere.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/graz.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/handroom-sr.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/handroom.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/maze.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/metalsphere.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/office.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/office2-sr.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/office2.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/reflectCaustic.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/simple.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/spec_sphere.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/transparent.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/twospheres.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/whitelab.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/whiteroom.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/README
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/blokken2.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/chair.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/coatrack.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/counter.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/desk.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/deur.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/deurbar.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/hosp.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/lampi.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/lampi2.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/lampi4.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/liftdeur.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/main.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/mug.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/orgchair.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/rectlight.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/redchair.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/shade.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/shades_box.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/squarelight.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/stoeltje.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/structure.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/tafeltje.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Hospital/window.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Materials/custommats.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Materials/dupont.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Materials/illums.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Materials/macbeth.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Materials/munsell.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Materials/objects.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Materials/realobj.mgf
+%%WITH_SCENES%%%%EXAMPLESDIR%%/Scenes/Materials/test.mgf
+%%WITH_SCENES%%@dirrm %%EXAMPLESDIR%%/Scenes/Hospital
+%%WITH_SCENES%%@dirrm %%EXAMPLESDIR%%/Scenes/Materials
+%%WITH_SCENES%%@dirrm %%EXAMPLESDIR%%/Scenes
+%%EXAMPLESDIR%%/corridor.mgf
+%%EXAMPLESDIR%%/cube.mgf
+%%EXAMPLESDIR%%/floor_gloss.mgf
+@dirrm %%EXAMPLESDIR%%
diff --git a/graphics/renderpark/scripts/cpp2c.sh b/graphics/renderpark/scripts/cpp2c.sh
new file mode 100644
index 000000000000..f422828243f9
--- /dev/null
+++ b/graphics/renderpark/scripts/cpp2c.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Convert C++ style sources to C style
+# $FreeBSD$
+
+FILES=`${FIND} ${WRKSRC} -name '*.c'`;
+for i in ${FILES}; do
+ if [ -n "`${GREP} -e '//' $i`" ]; then
+ ${REINPLACE_CMD} -e 's?//\(.*\)?/*\1 */?' $i;
+ fi;
+done;