summaryrefslogtreecommitdiff
path: root/graphics/megapov
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2003-07-27 15:22:31 +0000
committerMaho Nakata <maho@FreeBSD.org>2003-07-27 15:22:31 +0000
commitab050f80c4aa0fee238d5c233bc488468d30067d (patch)
tree7ae50a4144c73039ef4384d46d65f3300a512164 /graphics/megapov
parentAdd an explicit dependency on EMACS. (diff)
Added a new port, megapov.
This is a extension of povray (famous ray tracer), having a lot of new features. # Clothray cloth simulation system # Sim-POV mechanics simulation system # Film exposure simulation # Text object alignment # Frame_Step feature ... and much more.
Diffstat (limited to 'graphics/megapov')
-rw-r--r--graphics/megapov/Makefile68
-rw-r--r--graphics/megapov/distinfo1
-rw-r--r--graphics/megapov/files/patch-Makefile32
-rw-r--r--graphics/megapov/files/patch-unix+Makefile74
-rw-r--r--graphics/megapov/pkg-descr6
-rw-r--r--graphics/megapov/pkg-plist154
6 files changed, 335 insertions, 0 deletions
diff --git a/graphics/megapov/Makefile b/graphics/megapov/Makefile
new file mode 100644
index 000000000000..b2a01515715b
--- /dev/null
+++ b/graphics/megapov/Makefile
@@ -0,0 +1,68 @@
+# New ports collection makefile for: MegaPov
+# Date created: 25 July 2003
+# Whom: maho@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= megapov
+PORTVERSION= 1.0
+CATEGORIES= graphics
+MASTER_SITES= http://megapov.inetart.net/
+DISTNAME= ${PORTNAME}-${PORTVERSION}_unix_s
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= maho@FreeBSD.org
+COMMENT= Unofficial extensions of POV-Ray
+
+RUN_DEPENDS= povray:${PORTSDIR}/graphics/povray
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
+ jpeg:${PORTSDIR}/graphics/jpeg \
+ tiff:${PORTSDIR}/graphics/tiff \
+ vga:${PORTSDIR}/graphics/svgalib
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USE_XLIB= yes
+USE_REINPLACE= yes
+USE_GMAKE= yes
+ALL_TARGET= # empty
+
+.if defined(WITH_OPTIMIZED_FLAGS)
+CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wunused-variable
+CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wunused-variable -Wno-multichar
+.if (${MACHINE_ARCH} == "i386")
+CFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387
+CXXFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387
+.endif # i386
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
+ s|%%X11BASE%%|${X11BASE}|g ; \
+ s|%%LOCALBASE%%|${LOCALBASE}|g ;\
+ s|%%CC%%|${CC}|g ; \
+ s|%%CXX%%|${CXX}|g ; \
+ s|%%CFLAGS%%|${CFLAGS}|g ; \
+ s|%%CXXFLAGS%%|${CXXFLAGS}|g' ${WRKSRC}/unix/Makefile
+
+.if !defined(WITH_OPTIMIZED_FLAGS)
+ @${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."
+.endif
+
+do-install:
+ @(cd ${WRKSRC}/unix ; ${GMAKE} install)
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}/manual
+ @${TAR} -C ${WRKSRC}/manual -cf - . | \
+ ${TAR} -C ${DOCSDIR}/manual -xf -
+ @${INSTALL_DATA} ${WRKSRC}/povlegal.doc ${DOCSDIR}
+ @${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
+ @${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
+ @${MKDIR} ${EXAMPLESDIR}
+ @${TAR} -C ${WRKSRC} -cf - include scenes | \
+ ${TAR} -C ${EXAMPLESDIR} -xf -
+ @${FIND} ${EXAMPLESDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
+ @${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/megapov/distinfo b/graphics/megapov/distinfo
new file mode 100644
index 000000000000..520521c642d1
--- /dev/null
+++ b/graphics/megapov/distinfo
@@ -0,0 +1 @@
+MD5 (megapov-1.0_unix_s.tgz) = 6a7386b074746157b20346e209909b7a
diff --git a/graphics/megapov/files/patch-Makefile b/graphics/megapov/files/patch-Makefile
new file mode 100644
index 000000000000..cd9a1b845f2b
--- /dev/null
+++ b/graphics/megapov/files/patch-Makefile
@@ -0,0 +1,32 @@
+--- Makefile.org Sat Jul 26 13:29:28 2003
++++ Makefile Sat Jul 26 13:30:01 2003
+@@ -15,8 +15,8 @@
+ ##############################################################################
+
+
+-libdir = /usr/local/share/megapov
+-docdir = /usr/local/share/doc/megapov-1.0
++libdir = ${PREFIX}/share/megapov
++docdir = ${PREFIX}/share/doc/megapov-1.0
+
+ #
+ # make stuff
+@@ -32,14 +32,14 @@
+
+ install:
+ cd unix && $(MAKE) install
+- @if test ! -d /usr/local/share; \
+- then mkdir /usr/local/share; \
++ @if test ! -d ${PREFIX}/share; \
++ then mkdir ${PREFIX}/share; \
+ fi;
+ @if test ! -d $(libdir); \
+ then mkdir $(libdir); \
+ fi;
+- @if test ! -d /usr/local/share/doc; \
+- then mkdir /usr/local/share/doc; \
++ @if test ! -d ${PREFIX}/share/doc; \
++ then mkdir ${PREFIX}/share/doc; \
+ fi;
+ @if test ! -d $(docdir); \
+ then mkdir $(docdir); \
diff --git a/graphics/megapov/files/patch-unix+Makefile b/graphics/megapov/files/patch-unix+Makefile
new file mode 100644
index 000000000000..c5211c6127ee
--- /dev/null
+++ b/graphics/megapov/files/patch-unix+Makefile
@@ -0,0 +1,74 @@
+--- unix/Makefile.orig Sun Dec 29 19:59:23 2002
++++ unix/Makefile Sun Jul 27 21:02:31 2003
+@@ -1,4 +1,4 @@
+-##############################################################################
++#############################################################################
+ #
+ # Makefile for MegaPOV 1.0 - Linux version
+ #
+@@ -73,14 +73,14 @@
+ builddir = $(rootdir)/build_unix
+ testdir = $(rootdir)/test
+
+-prefix = /usr/local
++prefix = %%PREFIX%%
+ sysconfdir = $(prefix)/etc
+-installdir = /usr/local/bin
++installdir = %%PREFIX%%/bin
+
+-CC = gcc
+-CPP = gcc -E
+-CXX = g++
+-CXXCPP = g++ -E
++CC = %%CC%%
++CPP = %%CC%% -E
++CXX = %%CXX%%
++CXXCPP = %%CXX%% -E
+ PACKAGE = megapov
+ VERSION = 3.50c
+
+@@ -415,9 +415,9 @@
+ -DHAVE_LIBVGA=1 \
+ -DHAVE_LIBVGAGL=1
+
+-LDFLAGS_DISP = -I/usr/X11R6/include -I/usr/local/include -L/usr/X11R6/lib -L/usr/local/lib $(STATIC)
++LDFLAGS_DISP = -I%%X11BASE%%/include -I%%LOCALBASE%%/include -L%%X11BASE%%/lib -L%%LOCALBASE%%/lib $(STATIC)
+
+-LIBS_DISP = -ltiff -ljpeg -lpng -lz -lm -lvgagl -lvga -lX11 -ldl
++LIBS_DISP = -ltiff -ljpeg -lpng -lz -lm -lvgagl -lvga -lX11
+
+ # ---- without X11 and VGALib support ----
+
+@@ -425,7 +425,7 @@
+ -DX_DISPLAY_MISSING=1
+
+
+-LDFLAGS_NODISP = -I/usr/local/include -L/usr/local/lib $(STATIC)
++LDFLAGS_NODISP = -I%%LOCALBASE%%/include -L%%LOCALBASE%%/lib $(STATIC)
+
+ LIBS_NODISP = -ltiff -ljpeg -lpng -lz -lm
+
+@@ -433,12 +433,12 @@
+
+
+
+-INCLUDES = -I$(srcdir) -I$(sys_srcdir) -I$(patch_srcdir)
++INCLUDES = -I$(srcdir) -I$(sys_srcdir) -I$(patch_srcdir) -I%%X11BASE%%/include -I%%LOCALBASE%%/include
+
+ povray_LDADD = $(LDADD)
+ povray_LDFLAGS =
+
+-CPPFLAGS = -O3 -Wunused-variable
++CPPFLAGS = %%CXXFLAGS%%
+ NOMULTICHAR = `if [ "X$(CC)" = "Xgcc" ]; then echo "-Wno-multichar"; fi `
+ CXXFLAGS = $(NOMULTICHAR)
+ CXXCOMPILE_DISP = $(CXX) $(DEFS) $(DEFS_ADD_DISP) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS)
+@@ -448,7 +448,7 @@
+ CXXLINK_NODISP = $(CXXLD) $(CXXFLAGS) $(LDFLAGS_NODISP) -o $@
+
+
+-CFLAGS = -g -O3
++CFLAGS = %%CFLAGS%%
+ COMPILE_DISP = $(CC) $(DEFS) $(DEFS_ADD_DISP) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+ COMPILE_NODISP = $(CC) $(DEFS) $(DEFS_ADD_NODISP) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+ CCLD = $(CC)
diff --git a/graphics/megapov/pkg-descr b/graphics/megapov/pkg-descr
new file mode 100644
index 000000000000..3b36e1d91317
--- /dev/null
+++ b/graphics/megapov/pkg-descr
@@ -0,0 +1,6 @@
+MegaPOV is a collection of unofficial extensions for the freeware
+raytracer POV-Ray. It is maintained by a group of POV-Community
+members - the MegaPOV Team. Up-to-date versions and information can
+be obtained at the MegaPOV website:
+
+WWW: http://megapov.inetart.net/
diff --git a/graphics/megapov/pkg-plist b/graphics/megapov/pkg-plist
new file mode 100644
index 000000000000..78e02f6daa80
--- /dev/null
+++ b/graphics/megapov/pkg-plist
@@ -0,0 +1,154 @@
+bin/megapov
+%%PORTDOCS%%share/doc/megapov/manual/appendices.html
+%%PORTDOCS%%share/doc/megapov/manual/bibliography.html
+%%PORTDOCS%%share/doc/megapov/manual/binaries.html
+%%PORTDOCS%%share/doc/megapov/manual/clothutil.html
+%%PORTDOCS%%share/doc/megapov/manual/contribution.html
+%%PORTDOCS%%share/doc/megapov/manual/effects.html
+%%PORTDOCS%%share/doc/megapov/manual/enable.html
+%%PORTDOCS%%share/doc/megapov/manual/expressions.html
+%%PORTDOCS%%share/doc/megapov/manual/global_settings.html
+%%PORTDOCS%%share/doc/megapov/manual/glossaries.html
+%%PORTDOCS%%share/doc/megapov/manual/icons/blank.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/caution.gif
+%%PORTDOCS%%share/doc/megapov/manual/icons/caution.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/caution.tif
+%%PORTDOCS%%share/doc/megapov/manual/icons/draft.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/home.gif
+%%PORTDOCS%%share/doc/megapov/manual/icons/home.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/important.gif
+%%PORTDOCS%%share/doc/megapov/manual/icons/important.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/important.tif
+%%PORTDOCS%%share/doc/megapov/manual/icons/next.gif
+%%PORTDOCS%%share/doc/megapov/manual/icons/next.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/note.gif
+%%PORTDOCS%%share/doc/megapov/manual/icons/note.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/note.tif
+%%PORTDOCS%%share/doc/megapov/manual/icons/prev.gif
+%%PORTDOCS%%share/doc/megapov/manual/icons/prev.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/tip.gif
+%%PORTDOCS%%share/doc/megapov/manual/icons/tip.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/tip.tif
+%%PORTDOCS%%share/doc/megapov/manual/icons/toc-blank.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/toc-minus.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/toc-plus.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/up.gif
+%%PORTDOCS%%share/doc/megapov/manual/icons/up.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/warning.gif
+%%PORTDOCS%%share/doc/megapov/manual/icons/warning.png
+%%PORTDOCS%%share/doc/megapov/manual/icons/warning.tif
+%%PORTDOCS%%share/doc/megapov/manual/img/coll_face.png
+%%PORTDOCS%%share/doc/megapov/manual/img/coll_mass.png
+%%PORTDOCS%%share/doc/megapov/manual/img/connections1.png
+%%PORTDOCS%%share/doc/megapov/manual/img/env_force.png
+%%PORTDOCS%%share/doc/megapov/manual/img/env_impact.png
+%%PORTDOCS%%share/doc/megapov/manual/img/expo1.png
+%%PORTDOCS%%share/doc/megapov/manual/img/expo2.png
+%%PORTDOCS%%share/doc/megapov/manual/img/faces1.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro01.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro02.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro03a.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro03b.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro03c.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro03d.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro03e.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro03f.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro04.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro05a.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro05b.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro05c.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro05d.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro05e.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro06.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro07.png
+%%PORTDOCS%%share/doc/megapov/manual/img/macro09.png
+%%PORTDOCS%%share/doc/megapov/manual/img/masses1.png
+%%PORTDOCS%%share/doc/megapov/manual/img/patch01.png
+%%PORTDOCS%%share/doc/megapov/manual/img/titlepage.png
+%%PORTDOCS%%share/doc/megapov/manual/img/tut_drape01.jpg
+%%PORTDOCS%%share/doc/megapov/manual/img/tut_drape02.jpg
+%%PORTDOCS%%share/doc/megapov/manual/img/tut_drape03.jpg
+%%PORTDOCS%%share/doc/megapov/manual/img/tut_drape04.jpg
+%%PORTDOCS%%share/doc/megapov/manual/img/tut_drape05.jpg
+%%PORTDOCS%%share/doc/megapov/manual/img/tut_nappe01.jpg
+%%PORTDOCS%%share/doc/megapov/manual/img/tut_nappe02.jpg
+%%PORTDOCS%%share/doc/megapov/manual/img/tut_nappe03.jpg
+%%PORTDOCS%%share/doc/megapov/manual/img/tut_nappe04.jpg
+%%PORTDOCS%%share/doc/megapov/manual/img/tutorial01.png
+%%PORTDOCS%%share/doc/megapov/manual/img/tutorial02.png
+%%PORTDOCS%%share/doc/megapov/manual/img/tutorial03.png
+%%PORTDOCS%%share/doc/megapov/manual/img/tutorial04.png
+%%PORTDOCS%%share/doc/megapov/manual/img/tutorial05.png
+%%PORTDOCS%%share/doc/megapov/manual/img/tutorial06.png
+%%PORTDOCS%%share/doc/megapov/manual/img/tutorial07.png
+%%PORTDOCS%%share/doc/megapov/manual/img/tutorial08.png
+%%PORTDOCS%%share/doc/megapov/manual/include.html
+%%PORTDOCS%%share/doc/megapov/manual/index.html
+%%PORTDOCS%%share/doc/megapov/manual/internals.html
+%%PORTDOCS%%share/doc/megapov/manual/internals_expressions.html
+%%PORTDOCS%%share/doc/megapov/manual/internals_tokens.html
+%%PORTDOCS%%share/doc/megapov/manual/introduction.html
+%%PORTDOCS%%share/doc/megapov/manual/megapov.css
+%%PORTDOCS%%share/doc/megapov/manual/megapov01.html
+%%PORTDOCS%%share/doc/megapov/manual/megapov_index.html
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial01.pov
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial02.mpg
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial02.pov
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial03.mpg
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial03.pov
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial04.mpg
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial04.pov
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial05.mpg
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial05.pov
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial06.pov
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial07.mpg
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial07.pov
+%%PORTDOCS%%share/doc/megapov/manual/msim_tut/tutorial08.pov
+%%PORTDOCS%%share/doc/megapov/manual/multiformat_documentation.html
+%%PORTDOCS%%share/doc/megapov/manual/nappe.pov
+%%PORTDOCS%%share/doc/megapov/manual/news.html
+%%PORTDOCS%%share/doc/megapov/manual/objects.html
+%%PORTDOCS%%share/doc/megapov/manual/old_megapov.html
+%%PORTDOCS%%share/doc/megapov/manual/parser.html
+%%PORTDOCS%%share/doc/megapov/manual/patterns.html
+%%PORTDOCS%%share/doc/megapov/manual/references.html
+%%PORTDOCS%%share/doc/megapov/manual/tutorials.html
+%%PORTDOCS%%share/doc/megapov/manual/tutorials_effects.html
+%%PORTDOCS%%share/doc/megapov/manual/tutorials_objects.html
+%%PORTDOCS%%share/doc/megapov/manual/tutorials_simulation.html
+%%PORTDOCS%%share/doc/megapov/manual/where.html
+%%PORTDOCS%%share/doc/megapov/manual/why.html
+%%PORTDOCS%%share/doc/megapov/povlegal.doc
+%%PORTDOCS%%@dirrm share/doc/megapov/manual/msim_tut
+%%PORTDOCS%%@dirrm share/doc/megapov/manual/img
+%%PORTDOCS%%@dirrm share/doc/megapov/manual/icons
+%%PORTDOCS%%@dirrm share/doc/megapov/manual
+%%PORTDOCS%%@dirrm share/doc/megapov
+%%PORTDOCS%%%%EXAMPLESDIR%%/include/mechsim.inc
+%%PORTDOCS%%%%EXAMPLESDIR%%/include/mp_functions.inc
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/attach.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/chrono.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/clusglow.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/date.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/dispwarp.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/dispwarp2.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/drape.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/exposure.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/glowlits.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/listed.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/mechsim/bar.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/mechsim/blocks.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/mechsim/cloth.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/mechsim/cube.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/mechsim/rotate.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/mechsim/tshirt.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/nappe.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/noisepig.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/parametric.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/sor_spline.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/textalign.pov
+%%PORTDOCS%%%%EXAMPLESDIR%%/scenes/torus_uv.pov
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/scenes/mechsim
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/scenes
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/include
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%