1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add pyro.

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

PR:		ports/85842
Submitted by:	Igor Pokrovsky <ip@doom.homeunix.org>
This commit is contained in:
Jean-Yves Lefort 2005-09-07 20:28:39 +00:00
parent ba36f60f89
commit c04ae9a466
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=142185
6 changed files with 109 additions and 0 deletions

View File

@ -464,6 +464,7 @@
SUBDIR += py-paint
SUBDIR += py-pydot
SUBDIR += py-visual
SUBDIR += pyro
SUBDIR += q-graph
SUBDIR += qcamview
SUBDIR += qcomicbook

49
graphics/pyro/Makefile Normal file
View File

@ -0,0 +1,49 @@
# New ports collection makefile for: pyro
# Date created: 07 Sep 2005
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
#
# $FreeBSD$
#
PORTNAME= pyro
PORTVERSION= 1.5
CATEGORIES= graphics
MASTER_SITES= http://nostatic.org/pyro/
EXTRACT_SUFX= .tgz
MAINTAINER= ip@doom.homeunix.org
COMMENT= A simple OpenGL-based firework simulator
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
glut.3:${PORTSDIR}/graphics/libglut
USE_REINPLACE= yes
USE_GL= yes
USE_X_PREFIX= yes
EXAMPLES= pyro.dsp water.jpg
PLIST_FILES= bin/pyro ${EXAMPLES:S|^|%%EXAMPLESDIR%%/|}
PLIST_DIRS= %%EXAMPLESDIR%%
PORTDOCS= README
post-patch:
@${REINPLACE_CMD} -e 's|malloc\.h|stdlib.h|g' ${WRKSRC}/*.c
do-build:
${CC} ${CFLAGS} ${WRKSRC}/*.c -o ${WRKSRC}/${PORTNAME} \
-DAUXDIR=\"${EXAMPLESDIR}\" -I${WRKSRC} -I${X11BASE}/include \
-I${LOCALBASE}/include -L${X11BASE}/lib -L${LOCALBASE}/lib \
-ljpeg -lm -lXmu -lXi -lXext -lGL -lGLU -lglut
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
.ifndef (NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>

1
graphics/pyro/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (pyro-1.5.tgz) = b6f6514e08d753bfa0b966e0eb1d0c09

View File

@ -0,0 +1,10 @@
--- jpeg.c.orig
+++ jpeg.c
@@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <malloc.h>
#include "jpeglib.h"
#include <setjmp.h>

View File

@ -0,0 +1,32 @@
--- pyro.c.orig
+++ pyro.c
@@ -7,15 +7,18 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <math.h>
#ifdef __EMX__ /*os2*/
#include "float.h"
#endif
#include <time.h>
+/*
#ifdef XMESA
#include <GL/xmesa.h>
#endif
+*/
#include <GL/glut.h>
#include "pyro.h"
@@ -704,8 +707,9 @@
if(fxwin)
glutReshapeWindow(ScreenWidth,ScreenHeight);
else glutFullScreen();
-
+/*
XMesaSetFXmode(fxwin ? XMESA_FX_WINDOW:XMESA_FX_FULLSCREEN);
+*/
}
break;
#endif

16
graphics/pyro/pkg-descr Normal file
View File

@ -0,0 +1,16 @@
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
- Igor Pokrovsky
ip@doom.homeunix.org