the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: nodelib
Description: Neural Optimization Development Engine lib
Version: 1.30.1
Revision: 1
Maintainer: Ken Williams
BuildDepends: fink (>= 0.24.12-1)
Source: http://www.neci.nj.nec.com/homepages/flake/nodelib.tgz
# new website has nodelib.tgz, but it is *not* the same (it's version 1.31.1)
# when upgrading, please use SourceRename to insert %v in the tarball filename
Homepage: http://research.yahoo.com/~flakeg/nodelib/html
License: GPL
PatchFile: %n.patch
PatchFile-MD5: 933946fa0a3144dbd11c08b94e82c1eb
CompileScript: <<
make all CC=cc
<<
InstallScript: <<
mkdir -p %i/include/%n
cp -R include/%n %i/include/
ln -s %n/nodelib.h %i/include/nodelib.h
rm -f %i/include/%n/etc
mkdir %i/include/%n/etc
cp etc/*.h %i/include/%n/etc/
mkdir -p %i/lib
cp lib/libnode.a %i/lib/
cp lib/libnle.a %i/lib/
ranlib %i/lib/libnode.a
ranlib %i/lib/libnle.a
mkdir -p %i/share/doc/%n
cp etc/COPYING etc/CREDITS etc/ChangeLog etc/FAQ etc/NEWS etc/README etc/TODO etc/VERSION %i/share/doc/%n/
cp -R html %i/share/doc/%n/html
<<
Source-MD5: 5a2a00ffa92d01c25262b9a423420f51
diff -Nurd -x'*~' nodelib.orig/src/ulog.c nodelib/src/ulog.c
--- nodelib.orig/src/ulog.c 2002-03-10 15:13:28.000000000 -0500
+++ nodelib/src/ulog.c 2006-01-10 22:21:55.000000000 -0500
@@ -45,7 +45,8 @@
static void expand_pct_m(char *format, int pfsz)
{
- extern int errno, sys_nerr;
+ extern int errno;
+ extern const int sys_nerr;
extern const char *const sys_errlist[];
const char *err;
char *buf = ulog_fmt;
diff -Nurd -x'*~' nodelib.orig/src/xalloc.c nodelib/src/xalloc.c
--- nodelib.orig/src/xalloc.c 2000-01-04 11:32:03.000000000 -0500
+++ nodelib/src/xalloc.c 2006-01-10 22:21:55.000000000 -0500
@@ -3,7 +3,7 @@
#include
#include
-#include
+
#include
#undef XALLOC_DEBUG
diff -Nurd -x'*~' nodelib.orig/test/tjacob.c nodelib/test/tjacob.c
--- nodelib.orig/test/tjacob.c 2000-01-04 11:32:03.000000000 -0500
+++ nodelib/test/tjacob.c 2006-01-10 22:22:13.000000000 -0500
@@ -7,9 +7,7 @@
#include
#include
-static char *help_string = "\
-Compute the Jacobian is a NN.
-";
+static char *help_string = "Compute the Jacobian is a NN.\n";
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
diff -Nurd -x'*~' nodelib.orig/test/tkmeans.c nodelib/test/tkmeans.c
--- nodelib.orig/test/tkmeans.c 2000-01-04 11:57:37.000000000 -0500
+++ nodelib/test/tkmeans.c 2006-01-10 22:28:38.000000000 -0500
@@ -2,17 +2,7 @@
#include
-static char *help_string = "\
-Test the kmeans algorithms on uniform exemplars from [0,1]\n\
-The options for 'init' correspond to initializing the\n\
-cluster locations to:\n\
-\t0: Random exemplars\n\
-\t1: The centroids of a random partition of the data\n\
-\t2: The centroids of a sequential partition of the data\n\
-'maxiters' is the number of passes through the entire data set\n\
-for offline kmeans and the total number of online steps for online kmeans.\n\
-A reasonable value for online kmeans is 5*n.\n\
-The optimal solution has centers at .166..., 0.5, and .833...\n";
+static char *help_string = "Test the kmeans algorithms on uniform exemplars from [0,1]\nThe options for 'init' correspond to initializing the\ncluster locations to:\n\t0: Random exemplars\n\t1: The centroids of a random partition of the data\n\t2: The centroids of a sequential partition of the data\n'maxiters' is the number of passes through the entire data set\nfor offline kmeans and the total number of online steps for online kmeans.\nA reasonable value for online kmeans is 5*n.\nThe optimal solution has centers at .166..., 0.5, and .833...\n";
int main(int argc, char** argv)
{
diff -Nurd -x'*~' nodelib.orig/test/tnrbf.c nodelib/test/tnrbf.c
--- nodelib.orig/test/tnrbf.c 2000-01-04 11:32:03.000000000 -0500
+++ nodelib/test/tnrbf.c 2006-01-10 22:28:17.000000000 -0500
@@ -8,9 +8,7 @@
#include
#include
-static char *help_string = "\
-Hill-Plateau test for NRBFs.\n\
-";
+static char *help_string = "Hill-Plateau test for NRBFs.\n";
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */