ports/85842: New port: graphics/pyro A simple OpenGL-based firework simulator
Igor Pokrovsky
ip at doom.homeunix.org
Wed Sep 7 18:40:18 UTC 2005
>Number: 85842
>Category: ports
>Synopsis: New port: graphics/pyro A simple OpenGL-based firework simulator
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 07 18:40:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Igor Pokrovsky
>Release: FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD doom.homeunix.org 4.11-STABLE FreeBSD 4.11-STABLE #0: Wed Sep 7 09:26:18 MSD 2005 root at doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL-p3 i386
>Description:
PyroTechnics is a simple OpenGL-based firework simulator.
Features
--------
o a bunch of nifty kinds of fireworks
o the ability to choreograph firework displays
o a texture-mapped water surface
o reflections in the water
o fogging
o a moving camera
o the ability to save screenshots
WWW: http://nostatic.org/pyro/pyro.html
>How-To-Repeat:
>Fix:
--- pyro.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# pyro
# pyro/pkg-plist
# pyro/pkg-descr
# pyro/distinfo
# pyro/Makefile
# pyro/files
# pyro/files/patch-pyro.c
# pyro/files/patch-jpeg.c
#
echo c - pyro
mkdir -p pyro > /dev/null 2>&1
echo x - pyro/pkg-plist
sed 's/^X//' >pyro/pkg-plist << 'END-of-pyro/pkg-plist'
Xbin/pyro
X%%EXAMPLESDIR%%/pyro.dsp
X%%EXAMPLESDIR%%/water.jpg
X at dirrm %%EXAMPLESDIR%%
END-of-pyro/pkg-plist
echo x - pyro/pkg-descr
sed 's/^X//' >pyro/pkg-descr << 'END-of-pyro/pkg-descr'
XPyroTechnics is a simple OpenGL-based firework simulator.
X
XFeatures
X--------
X o a bunch of nifty kinds of fireworks
X o the ability to choreograph firework displays
X o a texture-mapped water surface
X o reflections in the water
X o fogging
X o a moving camera
X o the ability to save screenshots
X
XWWW: http://nostatic.org/pyro/pyro.html
X
X-Igor Pokrovsky
Xip at doom.homeunix.org
END-of-pyro/pkg-descr
echo x - pyro/distinfo
sed 's/^X//' >pyro/distinfo << 'END-of-pyro/distinfo'
XMD5 (pyro-1.5.tgz) = b6f6514e08d753bfa0b966e0eb1d0c09
END-of-pyro/distinfo
echo x - pyro/Makefile
sed 's/^X//' >pyro/Makefile << 'END-of-pyro/Makefile'
X# New ports collection makefile for: pyro
X# Date created: 07 Sep 2005
X# Whom: Igor Pokrovsky <ip at doom.homeunix.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= pyro
XPORTVERSION= 1.5
XCATEGORIES= graphics
XMASTER_SITES= http://nostatic.org/pyro/
XEXTRACT_SUFX= .tgz
X
XMAINTAINER= ip at doom.homeunix.org
XCOMMENT= A simple OpenGL-based firework simulator
X
XLIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
X glut.3:${PORTSDIR}/graphics/libglut
X
XUSE_REINPLACE= yes
XUSE_GL= yes
XUSE_X_PREFIX= yes
X
XPORTDOCS= README
X
Xpost-patch:
X @${REINPLACE_CMD} -i '' -e 's|malloc\.h|stdlib\.h|g' ${WRKSRC}/*.c
X
Xdo-build:
X ${CC} ${CFLAGS} ${WRKSRC}/*.c -o ${WRKSRC}/${PORTNAME} \
X -Wall -ffast-math -fomit-frame-pointer -funroll-all-loops \
X -DAUXDIR=\"${EXAMPLESDIR}\" -I${WRKSRC} -I${X11BASE}/include \
X -I${LOCALBASE}/include -L${X11BASE}/lib -L${LOCALBASE}/lib \
X -ljpeg -lm -lXmu -lXi -lXext -lGL -lGLU -lglut
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X
X @${MKDIR} ${EXAMPLESDIR}
X ${INSTALL_DATA} ${WRKSRC}/pyro.dsp ${WRKSRC}/water.jpg ${EXAMPLESDIR}
X
X.ifndef (NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-pyro/Makefile
echo c - pyro/files
mkdir -p pyro/files > /dev/null 2>&1
echo x - pyro/files/patch-pyro.c
sed 's/^X//' >pyro/files/patch-pyro.c << 'END-of-pyro/files/patch-pyro.c'
X--- pyro.c.orig
X+++ pyro.c
X@@ -7,15 +7,18 @@
X
X #include <stdio.h>
X #include <stdlib.h>
X+#include <string.h>
X #include <math.h>
X #ifdef __EMX__ /*os2*/
X #include "float.h"
X #endif
X #include <time.h>
X
X+/*
X #ifdef XMESA
X #include <GL/xmesa.h>
X #endif
X+*/
X
X #include <GL/glut.h>
X #include "pyro.h"
X@@ -704,8 +707,9 @@
X if(fxwin)
X glutReshapeWindow(ScreenWidth,ScreenHeight);
X else glutFullScreen();
X-
X+/*
X XMesaSetFXmode(fxwin ? XMESA_FX_WINDOW:XMESA_FX_FULLSCREEN);
X+*/
X }
X break;
X #endif
END-of-pyro/files/patch-pyro.c
echo x - pyro/files/patch-jpeg.c
sed 's/^X//' >pyro/files/patch-jpeg.c << 'END-of-pyro/files/patch-jpeg.c'
X--- jpeg.c.orig
X+++ jpeg.c
X@@ -5,6 +5,7 @@
X
X #include <stdio.h>
X #include <stdlib.h>
X+#include <string.h>
X #include <malloc.h>
X #include "jpeglib.h"
X #include <setjmp.h>
END-of-pyro/files/patch-jpeg.c
exit
--- pyro.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list