pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/firelib Import firelib from pkgsrc-wip. Packaged...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/058ceef4d3fc
branches:  trunk
changeset: 494106:058ceef4d3fc
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu May 19 13:03:56 2005 +0000

description:
Import firelib from pkgsrc-wip.  Packaged by David Price and modified
by me.

C language function library for predicting the spread rate, intensity,
flame length, and scorch height of free-burning surface fires.  It is
derived directly from the BEHAVE fire behavior algorithms for
predicting fire spread in two dimensions, but is optimized for highly
iterative applications such as cell- or wave- based fire growth
simulation.

diffstat:

 misc/firelib/DESCR            |   6 ++++++
 misc/firelib/Makefile         |  33 +++++++++++++++++++++++++++++++++
 misc/firelib/PLIST            |   7 +++++++
 misc/firelib/distinfo         |   6 ++++++
 misc/firelib/patches/patch-aa |  14 ++++++++++++++
 misc/firelib/patches/patch-ab |  17 +++++++++++++++++
 6 files changed, 83 insertions(+), 0 deletions(-)

diffs (107 lines):

diff -r 28c8dd1ff59b -r 058ceef4d3fc misc/firelib/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/firelib/DESCR        Thu May 19 13:03:56 2005 +0000
@@ -0,0 +1,6 @@
+C language function library for predicting the spread rate, intensity,
+flame length, and scorch height of free-burning surface fires.  It is
+derived directly from the BEHAVE fire behavior algorithms for
+predicting fire spread in two dimensions, but is optimized for highly
+iterative applications such as cell- or wave- based fire growth
+simulation.
diff -r 28c8dd1ff59b -r 058ceef4d3fc misc/firelib/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/firelib/Makefile     Thu May 19 13:03:56 2005 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/05/19 13:03:56 minskim Exp $
+#
+
+DISTNAME=              firelib-1.0.1
+CATEGORIES=            misc
+MASTER_SITES=          http://fire.org/firelib/
+
+MAINTAINER=            mchittur%cs.nmsu.edu@localhost
+HOMEPAGE=              http://fire.org/firelib/
+COMMENT=               Library for predicting fire spread rate, intensity, and more
+
+PKG_INSTALLATION_TYPES=        overwrite pkgviews
+
+WRKSRC=                        ${WRKDIR}
+
+MAKEFILE=              makefile
+BUILD_TARGET=          fireSim
+
+INSTALLATION_DIRS=     bin include lib
+
+post-build:
+       cd  ${WRKSRC} && ${AR} cru libfire.a fireLib.o
+       cd  ${WRKSRC} && ${RANLIB} libfire.a
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/libfire.a ${PREFIX}/lib
+       ${INSTALL_DATA} ${WRKSRC}/fireLib.h ${PREFIX}/include
+       ${INSTALL_PROGRAM} ${WRKSRC}/fireSim ${PREFIX}/bin
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/firelib
+       ${INSTALL_DATA} ${WRKSRC}/firelib.ps ${PREFIX}/share/doc/firelib
+       ${INSTALL_DATA} ${WRKSRC}/license.txt ${PREFIX}/share/doc/firelib
+
+.include "../../mk/bsd.pkg.mk"
diff -r 28c8dd1ff59b -r 058ceef4d3fc misc/firelib/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/firelib/PLIST        Thu May 19 13:03:56 2005 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/05/19 13:03:56 minskim Exp $
+bin/fireSim
+include/fireLib.h
+lib/libfire.a
+share/doc/firelib/firelib.ps
+share/doc/firelib/license.txt
+@dirrm share/doc/firelib
diff -r 28c8dd1ff59b -r 058ceef4d3fc misc/firelib/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/firelib/distinfo     Thu May 19 13:03:56 2005 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/05/19 13:03:56 minskim Exp $
+
+SHA1 (firelib-1.0.1.tar.gz) = 8505fb114b0be77df65a6dfa0364a27341ddf676
+Size (firelib-1.0.1.tar.gz) = 73951 bytes
+SHA1 (patch-aa) = accef2da64bff40d0637113390eca835d09f1462
+SHA1 (patch-ab) = e67c47f0a057160c3655159a11c75285c89ceee9
diff -r 28c8dd1ff59b -r 058ceef4d3fc misc/firelib/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/firelib/patches/patch-aa     Thu May 19 13:03:56 2005 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/05/19 13:03:56 minskim Exp $
+
+--- fireSim.c.orig     2004-08-27 10:34:54.000000000 -0600
++++ fireSim.c
+@@ -29,7 +29,9 @@
+ 
+ #include "fireLib.h"
+ 
++#ifndef _MATH_H_
+ #define INFINITY 999999999.     /* or close enough */
++#endif
+ 
+ /* NOTE 1: Change these to modify map size & resolution. */
+ static int    Rows   = 101;     /* Number of rows in each map. */
diff -r 28c8dd1ff59b -r 058ceef4d3fc misc/firelib/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/firelib/patches/patch-ab     Thu May 19 13:03:56 2005 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/05/19 13:03:56 minskim Exp $
+
+--- makefile.orig      1999-03-05 16:04:39.000000000 -0600
++++ makefile
+@@ -2,9 +2,9 @@
+ # Collin D. Bevins, October 1996
+ 
+ # The following rules work for UnixWare 2.0.
+-CC = cc
+-CFLAGS = -g -DNDEBUG
+-LIBS = -lm
++CC ?= cc
++CFLAGS ?= -g -DNDEBUG
++LIBS += -lm
+ 
+ fireSim: fireSim.o fireLib.o fireLib.h
+       $(CC) $(CFLAGS) fireSim.c fireLib.c -o fireSim $(LIBS)



Home | Main Index | Thread Index | Old Index